MCPcopy Create free account
hub / github.com/microsoft/typescript-go / newNode

Method newNode

internal/ast/ast.go:85–88  ·  view source on GitHub ↗
(kind Kind, data nodeData)

Source from the content-addressed store, hash-verified

83}
84
85func (f *NodeFactory) newNode(kind Kind, data nodeData) *Node {
86 f.nodeCount++
87 return newNode(kind, data, f.hooks)
88}
89
90func (f *NodeFactory) NodeCount() int {
91 return f.nodeCount

Callers 15

NewSourceFileMethod · 0.95
NewTokenMethod · 0.95
NewIdentifierMethod · 0.95
NewPrivateIdentifierMethod · 0.95
NewQualifiedNameMethod · 0.95
NewDecoratorMethod · 0.95
NewEmptyStatementMethod · 0.95
NewIfStatementMethod · 0.95
NewDoStatementMethod · 0.95
NewWhileStatementMethod · 0.95
NewForStatementMethod · 0.95

Calls 1

newNodeFunction · 0.85

Tested by

no test coverage detected