MCPcopy Index your code
hub / github.com/microsoft/typescript-go / typePredicateToString

Method typePredicateToString

internal/checker/printer.go:359–361  ·  view source on GitHub ↗
(typePredicate *TypePredicate)

Source from the content-addressed store, hash-verified

357}
358
359func (c *Checker) typePredicateToString(typePredicate *TypePredicate) string {
360 return c.typePredicateToStringEx(typePredicate, nil, TypeFormatFlagsUseAliasDefinedOutsideCurrentScope)
361}
362
363func (c *Checker) typePredicateToStringEx(typePredicate *TypePredicate, enclosingDeclaration *ast.Node, flags TypeFormatFlags) string {
364 writer, putWriter := printer.GetSingleLineStringWriter()

Callers 2

TypePredicateToStringMethod · 0.95

Calls 1

Tested by

no test coverage detected