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

Method emitTokenNodeEx

internal/printer/printer.go:975–988  ·  view source on GitHub ↗
(node *ast.TokenNode, flags tokenEmitFlags)

Source from the content-addressed store, hash-verified

973}
974
975func (p *Printer) emitTokenNodeEx(node *ast.TokenNode, flags tokenEmitFlags) {
976 if node == nil {
977 return
978 }
979
980 switch {
981 case ast.IsKeywordKind(node.Kind):
982 p.emitKeywordNodeEx(node, flags)
983 case ast.IsPunctuationKind(node.Kind):
984 p.emitPunctuationNodeEx(node, flags)
985 default:
986 panic(fmt.Sprintf("unexpected TokenNode: %v", node.Kind))
987 }
988}
989
990//
991// Literals

Callers 2

emitTokenNodeMethod · 0.95
emitBinaryExpressionMethod · 0.95

Calls 5

emitKeywordNodeExMethod · 0.95
emitPunctuationNodeExMethod · 0.95
IsKeywordKindFunction · 0.92
IsPunctuationKindFunction · 0.92
panicFunction · 0.85

Tested by

no test coverage detected