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

Function inside

src/resolution/type-parameters.ts:132–132  ·  view source on GitHub ↗
(o: Node)

Source from the content-addressed store, hash-verified

130 .getNodesByQualifiedName(ownerQn)
131 .filter((o) => o.filePath === target.filePath && o.startLine <= target.startLine && o.endLine >= target.endLine);
132 const inside = (o: Node): boolean => ref.filePath === o.filePath && ref.line >= o.startLine && ref.line <= o.endLine;
133 // A def's local (`case class B()` in a test method): only in there.
134 const def = containers.find((o) => o.kind === 'function' || o.kind === 'method');
135 if (def) return inside(def);

Callers 1

scalaMemberInScopeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected