Skip to content

Commit

Permalink
Merge pull request #917 from wondersloth/bug-type-method-name
Browse files Browse the repository at this point in the history
Fixed typo on method name; compilerModuleLocatorResolver
  • Loading branch information
tomdale authored Feb 7, 2019
2 parents 95f80fe + c49e719 commit fca7da1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/@glimmer/bundle-compiler/lib/bundle-compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export default class BundleCompiler {
main: this.context.stdlib.main,
heap: this.context.heap.capture(this.context.stdlib) as SerializedHeap,
pool: this.context.constants.toPool(),
table: this.compilerModuleLocatoresolver().getTable(),
table: this.compilerModuleLocatorResolver().getTable(),
symbolTables,
};
}
Expand All @@ -209,7 +209,7 @@ export default class BundleCompiler {
return template.toJSON();
}

compilerModuleLocatoresolver(): BundleCompilerLookup<ModuleLocator> {
compilerModuleLocatorResolver(): BundleCompilerLookup<ModuleLocator> {
return this.context.resolverDelegate;
}

Expand All @@ -221,7 +221,7 @@ export default class BundleCompiler {
// If this locator already has an assigned VM handle, it means we've already
// compiled it. We need to skip compiling it again and just return the same
// VM handle.
let vmHandle = this.compilerModuleLocatoresolver().getHandleByLocator(locator);
let vmHandle = this.compilerModuleLocatorResolver().getHandleByLocator(locator);
if (vmHandle !== undefined) return vmHandle;

// It's an error to try to compile a template that wasn't first added to the
Expand All @@ -238,7 +238,7 @@ export default class BundleCompiler {
vmHandle = compilableTemplate.compile(syntaxCompilationContext(this.context, this.macros));

// Index the locator by VM handle and vice versa for easy lookups.
this.compilerModuleLocatoresolver().setHandleByLocator(locator, vmHandle);
this.compilerModuleLocatorResolver().setHandleByLocator(locator, vmHandle);

return vmHandle;
}
Expand Down

0 comments on commit fca7da1

Please sign in to comment.