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

Method TypeToTypeNode

internal/checker/printer.go:418–421  ·  view source on GitHub ↗
(t *Type, enclosingDeclaration *ast.Node, flags nodebuilder.Flags, idToSymbol map[*ast.IdentifierNode]*ast.Symbol)

Source from the content-addressed store, hash-verified

416}
417
418func (c *Checker) TypeToTypeNode(t *Type, enclosingDeclaration *ast.Node, flags nodebuilder.Flags, idToSymbol map[*ast.IdentifierNode]*ast.Symbol) *ast.TypeNode {
419 nodeBuilder := c.getNodeBuilderEx(idToSymbol)
420 return nodeBuilder.TypeToTypeNode(t, enclosingDeclaration, flags, nodebuilder.InternalFlagsNone, nil)
421}
422
423func (c *Checker) SignatureToSignatureDeclaration(signature *Signature, kind ast.Kind, enclosingDeclaration *ast.Node, flags nodebuilder.Flags) *ast.Node {
424 nodeBuilder, release := c.getNodeBuilder()

Callers 10

createTypeNodeMethod · 0.45
typeToInlayHintPartsMethod · 0.45
getJSDocParamAnnotationFunction · 0.45
returnTypeToDisplayPartsFunction · 0.45
typeToStringExMethod · 0.45
TypeToTypeNodeExMethod · 0.45
handleTypeToTypeNodeMethod · 0.45

Calls 1

getNodeBuilderExMethod · 0.95

Tested by

no test coverage detected