MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / valForLabel

Function valForLabel

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

Source from the content-addressed store, hash-verified

559}
560
561function valForLabel(label: string): number {
562 switch (label) {
563 case 'Class': case 'Interface': case 'Trait': case 'Struct': return 8;
564 case 'Enum': return 7;
565 case 'Module': return 9;
566 case 'Variable': return 4;
567 default: return 6;
568 }
569}
570
571// Per-language query cache (compiled Query objects are reusable)
572const compiledQueryCache = new Map<string, Record<string, Query | null>>();

Callers 1

processNextBatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected