MCPcopy
hub / github.com/csev/py4e / Compiler

Function Compiler

tools/pythonauto/static/skulpt-004/skulpt.js:28553–28571  ·  view source on GitHub ↗

* @constructor * @param {string} filename * @param {SymbolTable} st * @param {number} flags * @param {boolean=} canSuspend whether compiled code can suspend * @param {string=} sourceCodeForAnnotation used to add original source to listing if desired

(filename, st, flags, canSuspend, sourceCodeForAnnotation)

Source from the content-addressed store, hash-verified

28551 * @param {string=} sourceCodeForAnnotation used to add original source to listing if desired
28552 */
28553function Compiler (filename, st, flags, canSuspend, sourceCodeForAnnotation) {
28554 this.filename = filename;
28555 this.st = st;
28556 this.flags = flags;
28557 this.canSuspend = canSuspend;
28558 this.interactive = false;
28559 this.nestlevel = 0;
28560
28561 this.u = null;
28562 this.stack = [];
28563
28564 this.result = [];
28565
28566 // this.gensymcount = 0;
28567
28568 this.allUnits = [];
28569
28570 this.source = sourceCodeForAnnotation ? sourceCodeForAnnotation.split("\n") : false;
28571}
28572
28573/**
28574 * @constructor

Callers

nothing calls this directly

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected