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

Method GetTypeNode

internal/printer/emitcontext.go:1001–1006  ·  view source on GitHub ↗

GetTypeNode gets the type node stored on a name node by the type eraser.

(node *ast.Node)

Source from the content-addressed store, hash-verified

999
1000// GetTypeNode gets the type node stored on a name node by the type eraser.
1001func (c *EmitContext) GetTypeNode(node *ast.Node) *ast.TypeNode {
1002 if emitNode := c.emitNodes.TryGet(node); emitNode != nil {
1003 return emitNode.typeNode
1004 }
1005 return nil
1006}
1007
1008func (c *EmitContext) NewNotEmittedStatement(node *ast.Node) *ast.Statement {
1009 statement := c.Factory.NewNotEmittedStatement()

Callers 2

emitCommentsAfterNodeMethod · 0.80

Calls 1

TryGetMethod · 0.80

Tested by

no test coverage detected