MCPcopy Create free account
hub / github.com/nodejs/node / trimTrailingWitespacesForPositions

Function trimTrailingWitespacesForPositions

test/fixtures/snapshot/typescript.js:147871–147875  ·  view source on GitHub ↗
(startPos, endPos, previousRange)

Source from the content-addressed store, hash-verified

147869 }
147870 }
147871 function trimTrailingWitespacesForPositions(startPos, endPos, previousRange) {
147872 var startLine = sourceFile.getLineAndCharacterOfPosition(startPos).line;
147873 var endLine = sourceFile.getLineAndCharacterOfPosition(endPos).line;
147874 trimTrailingWhitespacesForLines(startLine, endLine + 1, previousRange);
147875 }
147876 function recordDelete(start, len) {
147877 if (len) {
147878 edits.push(ts.createTextChangeFromStartLength(start, len, ""));

Calls 1

Tested by

no test coverage detected