(code:string, context:string)
| 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) { |