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

Method isPreciseToken

src/mcp/tools.ts:4780–4781  ·  view source on GitHub ↗
(x: string)

Source from the content-addressed store, hash-verified

4778 // sibling-bag case), which an incidental English-word collision never is.
4779 const lcTokens = new Set(tokens.map((x) => x.toLowerCase()));
4780 const isPreciseToken = (x: string) =>
4781 /[._$]|::|\//.test(x) || /[a-z][A-Z]/.test(x) || /^[A-Z]/.test(x);
4782 const fileNameSets = new Map<string, Set<string>>();
4783 const coNamedInFile = (t: string, fp: string): boolean => {
4784 let names = fileNameSets.get(fp);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected