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:
@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user