refactor(compiler): simplify the CompilerHost used for transformers

- remove unneeded methods (`getNgCanonicalFileName`, `assumeFileExists`)
- simplify moduleName <-> fileName conversion logic as we don’t need to
  account for `genDir` anymore.
- rename `createNgCompilerHost` -> `createCompilerHost`
This commit is contained in:
Tobias Bosch
2017-08-14 11:04:55 -07:00
committed by Hans
parent 27d5058e01
commit 6a1ab61cce
9 changed files with 310 additions and 333 deletions

View File

@ -172,6 +172,10 @@ export class StaticSymbolResolver {
this.importAs.set(sourceSymbol, targetSymbol);
}
recordModuleNameForFileName(fileName: string, moduleName: string) {
this.knownFileNameToModuleNames.set(fileName, moduleName);
}
/**
* Invalidate all information derived from the given file.
*