MCPcopy Index your code
hub / github.com/CodeGraphContext/CodeGraphContext / marshalEdit

Function marshalEdit

website/public/wasm/web-tree-sitter.js:1266–1279  ·  view source on GitHub ↗
(edit, address = TRANSFER_BUFFER)

Source from the content-addressed store, hash-verified

1264}
1265__name(unmarshalRange, "unmarshalRange");
1266function marshalEdit(edit, address = TRANSFER_BUFFER) {
1267 marshalPoint(address, edit.startPosition);
1268 address += SIZE_OF_POINT;
1269 marshalPoint(address, edit.oldEndPosition);
1270 address += SIZE_OF_POINT;
1271 marshalPoint(address, edit.newEndPosition);
1272 address += SIZE_OF_POINT;
1273 C.setValue(address, edit.startIndex, "i32");
1274 address += SIZE_OF_INT;
1275 C.setValue(address, edit.oldEndIndex, "i32");
1276 address += SIZE_OF_INT;
1277 C.setValue(address, edit.newEndIndex, "i32");
1278 address += SIZE_OF_INT;
1279}
1280__name(marshalEdit, "marshalEdit");
1281function unmarshalLanguageMetadata(address) {
1282 const major_version = C.getValue(address, "i32");

Callers 2

editMethod · 0.85
editMethod · 0.85

Calls 2

marshalPointFunction · 0.85
setValueMethod · 0.80

Tested by

no test coverage detected