MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / codeTokens

Function codeTokens

src/codegraph/helper-extract.ts:62–64  ·  view source on GitHub ↗
(normalized: string)

Source from the content-addressed store, hash-verified

60
61/** Code-aware tokens: identifiers/keywords AND operators/punctuation (structure matters). PURE. */
62export function codeTokens(normalized: string): string[] {
63 return normalized.match(/[A-Za-z_$][\w$]*|[+\-*/%<>=!&|^~?:;,.(){}\[\]]/g) ?? [];
64}
65
66function round(x: number): number { return Math.round(x * 100) / 100; }
67

Callers 2

findSimilarHelpersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected