MCPcopy Create free account
hub / github.com/NeilFraser/JS-Interpreter / encodeLoc_

Function encodeLoc_

demos/serialize.js:436–456  ·  view source on GitHub ↗

* Compactly serialize the location objects on a Node: * { * start: {line 1, column: 0}, * end: {line 4, column: 21}, * source: "code" * } * into a string like this: '1:0-4:21 code' * @param {!Object} loc Location object. * @returns {string} Serialized location.

(loc)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

serializeFunction · 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…