MCPcopy Index your code
hub / github.com/CodeGraphContext/CodeGraphContext / valForLabel

Function valForLabel

website/src/lib/parser.worker.ts:442–449  ·  view source on GitHub ↗
(label: string)

Source from the content-addressed store, hash-verified

440}
441
442function valForLabel(label: string): number {
443 switch (label) {
444 case 'Class': case 'Interface': case 'Trait': return 8;
445 case 'Enum': return 7;
446 case 'Module': return 9;
447 default: return 6;
448 }
449}
450
451// Per-language query cache (compiled Query objects are reusable)
452const compiledQueryCache = new Map<string, Record<string, Query | null>>();

Callers 1

processNextBatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected