MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / parse

Method parse

shared/rison.ts:380–386  ·  view source on GitHub ↗

* parse a rison string into a javascript structure.

(str: string)

Source from the content-addressed store, hash-verified

378 * parse a rison string into a javascript structure.
379 */
380 parse(str: string): JSONValue {
381 this.string = str;
382 this.index = 0;
383 const value = this.readValue();
384 if (this.next()) this.error("unable to parse string as rison: '" + encode(str) + "'");
385 return value;
386 }
387
388 error(message: string): never {
389 throw new Error('rison parser error: ' + message);

Callers 15

decodeFunction · 0.95
doTheParsingMethod · 0.45
create_fileFunction · 0.45
deserialiseStateFunction · 0.45
listFunction · 0.45
pushFunction · 0.45
setupSettingsFunction · 0.45
findConfigFunction · 0.45
options.tsFile · 0.45
getStoredSettingsMethod · 0.45

Calls 4

readValueMethod · 0.95
nextMethod · 0.95
errorMethod · 0.95
encodeFunction · 0.70

Tested by

no test coverage detected