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

Function visit

internal/ast/ast.go:30–35  ·  view source on GitHub ↗
(v Visitor, node *Node)

Source from the content-addressed store, hash-verified

28type Visitor func(*Node) bool
29
30func visit(v Visitor, node *Node) bool {
31 if node != nil {
32 return v(node)
33 }
34 return false
35}
36
37func visitNodes(v Visitor, nodes []*Node) bool {
38 for _, node := range nodes { //nolint:modernize

Callers 15

ForEachChildMethod · 0.70
computeDeclarationMapMethod · 0.70
ForEachChildMethod · 0.70
ForEachChildMethod · 0.70
ForEachChildMethod · 0.70
ForEachChildMethod · 0.70
ForEachChildMethod · 0.70
ForEachChildMethod · 0.70
ForEachChildMethod · 0.70
ForEachChildMethod · 0.70
ForEachChildMethod · 0.70

Calls 1

vFunction · 0.50

Tested by

no test coverage detected