MCPcopy Index your code
hub / github.com/nodejs/node / isBacktrackingSourcePosition

Function isBacktrackingSourcePosition

test/fixtures/snapshot/typescript.js:90071–90078  ·  view source on GitHub ↗
(sourceIndex, sourceLine, sourceCharacter)

Source from the content-addressed store, hash-verified

90069 || pendingGeneratedCharacter !== generatedCharacter;
90070 }
90071 function isBacktrackingSourcePosition(sourceIndex, sourceLine, sourceCharacter) {
90072 return sourceIndex !== undefined
90073 && sourceLine !== undefined
90074 && sourceCharacter !== undefined
90075 && pendingSourceIndex === sourceIndex
90076 && (pendingSourceLine > sourceLine
90077 || pendingSourceLine === sourceLine && pendingSourceCharacter > sourceCharacter);
90078 }
90079 function addMapping(generatedLine, generatedCharacter, sourceIndex, sourceLine, sourceCharacter, nameIndex) {
90080 ts.Debug.assert(generatedLine >= pendingGeneratedLine, "generatedLine cannot backtrack");
90081 ts.Debug.assert(generatedCharacter >= 0, "generatedCharacter cannot be negative");

Callers 1

addMappingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…