Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(resolver: RuntimeResolver) {
const program = new Program(new LazyConstants(resolver));
const macros = new Macros();
populateMacros(macros);
this.program = program;
this.macros = macros;
this.resolver = new CompileTimeLookup(resolver);
this.Builder = LazyOpcodeBuilder as OpcodeBuilderConstructor;
}
constructor(isInteractive: boolean) {
let macros = new Macros();
populateMacros(macros);
this.compiler = new LazyCompiler(new CompileTimeLookup(this), this, macros);
this.isInteractive = isInteractive;
this.builtInModifiers = {
action: { manager: new ActionModifierManager(), state: null },
on: { manager: new OnModifierManager(isInteractive), state: null },
};
}