MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / constructor

Method constructor

website/public/wasm/web-tree-sitter.js:21–35  ·  view source on GitHub ↗
({
    startIndex,
    oldEndIndex,
    newEndIndex,
    startPosition,
    oldEndPosition,
    newEndPosition
  })

Source from the content-addressed store, hash-verified

19 /** The end index of the change after the edit. */
20 newEndIndex;
21 constructor({
22 startIndex,
23 oldEndIndex,
24 newEndIndex,
25 startPosition,
26 oldEndPosition,
27 newEndPosition
28 }) {
29 this.startIndex = startIndex >>> 0;
30 this.oldEndIndex = oldEndIndex >>> 0;
31 this.newEndIndex = newEndIndex >>> 0;
32 this.startPosition = startPosition;
33 this.oldEndPosition = oldEndPosition;
34 this.newEndPosition = newEndPosition;
35 }
36 /**
37 * Edit a point and index to keep it in-sync with source code that has been edited.
38 *

Callers

nothing calls this directly

Calls 7

assertInternalFunction · 0.85
parsePatternFunction · 0.85
lengthBytesUTF8Method · 0.80
stringToUTF8Method · 0.80
UTF8ToStringMethod · 0.80
initializeMethod · 0.65
getValueMethod · 0.45

Tested by

no test coverage detected