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

Function isCommentStart

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

Whether a comment starts at `i`.

(s: string, i: number)

Source from the content-addressed store, hash-verified

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

Callers 2

skipTriviaFunction · 0.85
skipTriviaToGroupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected