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

Function tokenClass

ui/src/lib/highlight.ts:142–157  ·  view source on GitHub ↗
(cls: TokenClass)

Source from the content-addressed store, hash-verified

140 * not be.
141 */
142export function tokenClass(cls: TokenClass): string | null {
143 switch (cls) {
144 case 'comment':
145 return 't-c';
146 case 'string':
147 return 't-s';
148 case 'keyword':
149 return 't-k';
150 case 'number':
151 return 't-n';
152 case 'def':
153 return 't-def';
154 default:
155 return null;
156 }
157}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected