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

Function isCommentStart

src/extraction/languages/pascal-preparse.ts:178–181  ·  view source on GitHub ↗

Whether a comment starts at `i`.

(s: string, i: number)

Source from the content-addressed store, hash-verified

176
177/** Whether a comment starts at `i`. */
178function isCommentStart(s: string, i: number): boolean {
179 const c = s.charCodeAt(i);
180 return c === CH_LBRACE || (c === CH_LPAREN && s.charCodeAt(i + 1) === CH_STAR) || (c === CH_SLASH && s.charCodeAt(i + 1) === CH_SLASH);
181}
182
183/** The index of the first character from `i` that is neither whitespace nor in a comment. */
184function skipTrivia(s: string, i: number): number {

Callers 2

skipTriviaFunction · 0.85
skipTriviaToGroupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected