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

Function emptyParsedTokens

packages/code-map/src/parse.ts:332–340  ·  view source on GitHub ↗
(skipped: boolean)

Source from the content-addressed store, hash-verified

330}
331
332function emptyParsedTokens(skipped: boolean): ParsedTokensForScoring {
333 return {
334 numLines: 0,
335 identifiers: [],
336 calls: [],
337 bytes: 0,
338 skipped,
339 }
340}
341
342function countLines(sourceCode: string): number {
343 return (sourceCode.match(/\n/g)?.length ?? 0) + 1

Callers 2

parseTokensForScoringFunction · 0.85
parseTokensWithLimitsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected