Revert "refactor(compiler): renames"

This reverts commit 38be2b81c6.
This commit is contained in:
Tobias Bosch
2016-11-23 12:08:45 -08:00
parent 593e05dc97
commit 9946ac5cc7
15 changed files with 86 additions and 92 deletions

View File

@ -511,12 +511,12 @@ class MockAotCompilerHost implements AotCompilerHost {
loadResource(filePath: string): Promise<string> { throw new Error('Should not be called!'); }
fileNameToModuleName(importedFilePath: string, containingFilePath: string): string {
resolveFileToImport(importedFilePath: string, containingFilePath: string): string {
throw new Error('Should not be called!');
}
// In tests, assume that symbols are not re-exported
moduleNameToFileName(modulePath: string, containingFile?: string): string {
resolveImportToFile(modulePath: string, containingFile?: string): string {
function splitPath(path: string): string[] { return path.split(/\/|\\/g); }
function resolvePath(pathParts: string[]): string {

View File

@ -253,7 +253,7 @@ function createOperatorFn(op: o.BinaryOperator) {
}
export class SimpleJsImportGenerator implements ImportResolver {
fileNameToModuleName(importedUrlStr: string, moduleUrlStr: string): string {
resolveFileToImport(importedUrlStr: string, moduleUrlStr: string): string {
return importedUrlStr;
}
}