MCPcopy
hub / github.com/witheve/Eve / load

Function load

src/runtime/runtimeClient.ts:33–42  ·  view source on GitHub ↗
(code:string, context:string)

Source from the content-addressed store, hash-verified

31 abstract send(json): void;
32
33 load(code:string, context:string) {
34 code = code || "";
35 let {results, errors} : {results: any, errors: any[]} = parser.parseDoc(code, context);
36 if(errors && errors.length) console.error(errors);
37 results.code = code;
38 this.lastParse = results;
39 this.send(JSON.stringify({type: "css", css: this.enabledCss()}));
40 this.makeEvaluation();
41 this.evaluation.fixpoint();
42 }
43
44 makeEvaluation(parse = this.lastParse) {
45 if(this.evaluation) {

Callers

nothing calls this directly

Calls 3

errorMethod · 0.80
sendMethod · 0.65
fixpointMethod · 0.45

Tested by

no test coverage detected