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

Method prio

src/mcp/tools.ts:6433–6437  ·  view source on GitHub ↗
(n: Node)

Source from the content-addressed store, hash-verified

6431 // `get_select` and came back as its signature line, every time.
6432 const chainPos = new Map([...flow.pathNodeIds].map((id, i) => [id, i]));
6433 const prio = (n: Node) => !CALLABLE_BODY.has(n.kind) ? 99
6434 : exactNodeIds.has(n.id) ? 0
6435 : flow.pathNodeIds.has(n.id) ? (flow.namedNodeIds.has(n.id) ? 1 : 2)
6436 : flow.uniqueNamedNodeIds.has(n.id) ? 3
6437 : (fileDefinesSuper && flow.namedNodeIds.has(n.id)) ? 4 : 99;
6438 // Tiers 0-1 are never reduced to a signature: a body too big for what is
6439 // left is WINDOWED instead — its head plus the lines where it calls the
6440 // other symbols the question named. A signature is the one render of a

Callers

nothing calls this directly

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected