How to use the @glimmer/opcode-compiler.PartialDefinition 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 glimmerjs / glimmer-vm / packages / @glimmer / test-helpers / lib / environment / modes / lazy / register.ts View on Github external
export function registerPartial(
  registry: JitRegistry,
  name: string,
  source: string
): PartialDefinition {
  let definition = new PartialDefinition(name, preprocess(source));
  registry.register('partial', name, definition);
  return definition;
}
github glimmerjs / glimmer-vm / packages / @glimmer / test-helpers / lib / environment / modes / lazy / environment.ts View on Github external
registerPartial(name: string, source: string): PartialDefinition {
    let definition = new PartialDefinition(name, this.preprocess(source));
    this.resolver.register('partial', name, definition);
    return definition;
  }
github glimmerjs / glimmer-vm / packages / @glimmer / integration-tests / lib / modes / jit / register.ts View on Github external
export function registerPartial(
  registry: TestJitRegistry,
  name: string,
  source: string
): PartialDefinition {
  let definition = new PartialDefinition(name, preprocess(source));
  registry.register('partial', name, definition);
  return definition;
}
github emberjs / ember.js / packages / @ember / -internals / glimmer / lib / resolver.ts View on Github external
private _lookupPartial(name: string, meta: OwnedTemplateMeta): PartialDefinition {
    let templateFactory = lookupPartial(name, meta.owner);
    let template = templateFactory(meta.owner);

    return new PartialDefinition(name, template);
  }