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

Function GetContainingClass

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

Source from the content-addressed store, hash-verified

1691}
1692
1693func GetContainingClass(node *Node) *Node {
1694 return FindAncestor(node.Parent, IsClassLike)
1695}
1696
1697func GetExtendsHeritageClauseElement(node *Node) *ExpressionWithTypeArgumentsNode {
1698 return core.FirstOrNil(GetExtendsHeritageClauseElements(node))

Calls 1

FindAncestorFunction · 0.85

Tested by

no test coverage detected