MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / parseTokens

Function parseTokens

packages/code-map/src/parse.ts:135–148  ·  view source on GitHub ↗
(
  filePath: string,
  languageConfig: LanguageConfig,
  readFile?: (filePath: string) => string | null,
  options: ParseTokensOptions = {},
)

Source from the content-addressed store, hash-verified

133}
134
135export function parseTokens(
136 filePath: string,
137 languageConfig: LanguageConfig,
138 readFile?: (filePath: string) => string | null,
139 options: ParseTokensOptions = {},
140): ParsedTokens {
141 const { numLines, identifiers, calls } = parseTokensWithLimits(
142 filePath,
143 languageConfig,
144 readFile,
145 options,
146 )
147 return { numLines, identifiers, calls }
148}
149
150async function parseTokensForScoring(params: {
151 filePath: string

Callers 2

parse.test.tsFile · 0.90

Calls 1

parseTokensWithLimitsFunction · 0.85

Tested by

no test coverage detected