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

Method visitFunctionBody

internal/ast/visitor.go:218–223  ·  view source on GitHub ↗
(node *BlockOrExpression)

Source from the content-addressed store, hash-verified

216}
217
218func (v *NodeVisitor) visitFunctionBody(node *BlockOrExpression) *BlockOrExpression {
219 if v.Hooks.VisitFunctionBody != nil {
220 return v.Hooks.VisitFunctionBody(node, v)
221 }
222 return v.visitNode(node)
223}
224
225func (v *NodeVisitor) visitToken(node *Node) *Node {
226 if v.Hooks.VisitToken != nil {

Callers 7

VisitEachChildMethod · 0.80
VisitEachChildMethod · 0.80
VisitEachChildMethod · 0.80
VisitEachChildMethod · 0.80
VisitEachChildMethod · 0.80
VisitEachChildMethod · 0.80
VisitEachChildMethod · 0.80

Calls 2

visitNodeMethod · 0.95
VisitFunctionBodyMethod · 0.80

Tested by

no test coverage detected