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

Function inside

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

Source from the content-addressed store, hash-verified

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

Callers 1

scalaMemberInScopeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected