MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / ownerOf

Function ownerOf

src/resolution/pascal-scope.ts:763–765  ·  view source on GitHub ↗

The qualified name of what declares a node (`TFoo::Bar` → `tfoo`), lowercased.

(node: Node)

Source from the content-addressed store, hash-verified

761
762/** The qualified name of what declares a node (`TFoo::Bar` → `tfoo`), lowercased. */
763function ownerOf(node: Node): string {
764 return node.qualifiedName.slice(0, Math.max(0, node.qualifiedName.lastIndexOf('::'))).toLowerCase();
765}
766
767/**
768 * The member a name reaches in a class or, failing that, in its ancestors,

Callers 3

classExpressionsMethod · 0.70
nestedRoutineInScopeFunction · 0.70
memberInHierarchyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected