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

Function GetContainingFunction

internal/ast/utilities.go:4130–4132  ·  view source on GitHub ↗
(node *Node)

Source from the content-addressed store, hash-verified

4128}
4129
4130func GetContainingFunction(node *Node) *Node {
4131 return FindAncestor(node.Parent, IsFunctionLike)
4132}
4133
4134func ImportFromModuleSpecifier(node *Node) *Node {
4135 if result := TryGetImportFromModuleSpecifier(node); result != nil {

Calls 1

FindAncestorFunction · 0.85

Tested by

no test coverage detected