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

Function isPreciseSymbolToken

src/search/query-paths.ts:129–131  ·  view source on GitHub ↗

* The seeder's NL-stopword test: camelCase, PascalCase, snake_case, `$` and * qualified tokens are unmistakably code. A bare lowercase word (`options`, * `render`) is also English, and a file defining one proves nothing about * which same-named file the agent meant.

(t: string)

Source from the content-addressed store, hash-verified

127 * which same-named file the agent meant.
128 */
129function isPreciseSymbolToken(t: string): boolean {
130 return /[._$]|::/.test(t) || /[a-z][A-Z]/.test(t) || /^[A-Z]/.test(t);
131}
132
133/**
134 * The precise symbol tokens a query names, excluding the files it names

Callers 1

querySymbolTokensFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected