How to use the @glimmer/opcode-compiler.Macros function in @glimmer/opcode-compiler

To help you get started, we’ve selected a few @glimmer/opcode-compiler examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github emberjs / ember.js / packages / ember-glimmer / lib / compile-options.ts View on Github external
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;
  }
github emberjs / ember.js / packages / @ember / -internals / glimmer / lib / resolver.ts View on Github external
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 },
    };
  }