MCPcopy
hub / github.com/benjamn/recast / getLineLength

Method getLineLength

lib/lines.ts:356–359  ·  view source on GitHub ↗
(line: number)

Source from the content-addressed store, hash-verified

354 }
355
356 getLineLength(line: number) {
357 const info = this.infos[line - 1];
358 return this.getIndentAt(line) + info.sliceEnd - info.sliceStart;
359 }
360
361 nextPos(pos: Pos, skipSpaces: boolean = false) {
362 const l = Math.max(pos.line, 0),

Callers 12

nextPosMethod · 0.95
prevPosMethod · 0.95
lastPosMethod · 0.95
isEmptyMethod · 0.95
skipCharsFunction · 0.80
genericPrintNoParensFunction · 0.80
printArgumentsListFunction · 0.80
printFunctionParamsFunction · 0.80
printExportDeclarationFunction · 0.80
patcher.tsFile · 0.80
lines.tsFile · 0.80

Calls 1

getIndentAtMethod · 0.95

Tested by

no test coverage detected