Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed typo on method name; compilerModuleLocatorResolver #917

Merged
merged 1 commit into from
Feb 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -208,7 +208,7 @@ export default class BundleCompiler {
return template.toJSON();
}

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

Expand All @@ -220,7 +220,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 @@ -237,7 +237,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