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

Function lineEnd

src/resolution/jsx-code.ts:76–79  ·  view source on GitHub ↗
(src: string, k: number)

Source from the content-addressed store, hash-verified

74}
75
76function lineEnd(src: string, k: number): number {
77 for (let c = src.charCodeAt(k); k < src.length && c !== 10 && c !== 13; c = src.charCodeAt(++k));
78 return k;
79}
80
81/** The `/` closing the regex literal opened at `start`, or -1 when it doesn't close on its line. */
82function regexEnd(src: string, start: number): number {

Callers 2

codeMethod · 0.70
tagMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected