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

Method prio

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

Source from the content-addressed store, hash-verified

6487 // `get_select` and came back as its signature line, every time.
6488 const chainPos = new Map([...flow.pathNodeIds].map((id, i) => [id, i]));
6489 const prio = (n: Node) => !CALLABLE_BODY.has(n.kind) ? 99
6490 : exactNodeIds.has(n.id) ? 0
6491 : flow.pathNodeIds.has(n.id) ? (flow.namedNodeIds.has(n.id) ? 1 : 2)
6492 : flow.uniqueNamedNodeIds.has(n.id) ? 3
6493 : (fileDefinesSuper && flow.namedNodeIds.has(n.id)) ? 4 : 99;
6494 // Tiers 0-1 are never reduced to a signature: a body too big for what is
6495 // left is WINDOWED instead — its head plus the lines where it calls the
6496 // 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