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

Method ForEachChild

internal/ast/ast.go:2647–2649  ·  view source on GitHub ↗
(v Visitor)

Source from the content-addressed store, hash-verified

2645}
2646
2647func (node *SourceFile) ForEachChild(v Visitor) bool {
2648 return visitNodeList(v, node.Statements) || visit(v, node.EndOfFileToken)
2649}
2650
2651func (node *SourceFile) VisitEachChild(v *NodeVisitor) *Node {
2652 return v.Factory.UpdateSourceFile(node, v.visitTopLevelStatements(node.Statements), v.visitToken(node.EndOfFileToken))

Callers 3

getNonformattedTextMethod · 0.95
GetNameTableMethod · 0.95
computeDeclarationMapMethod · 0.95

Calls 2

visitNodeListFunction · 0.70
visitFunction · 0.70

Tested by

no test coverage detected