diff --git a/packages/compiler-cli/src/ngtsc/metadata/src/reflector.ts b/packages/compiler-cli/src/ngtsc/metadata/src/reflector.ts index 014abbae89..5e93aa402d 100644 --- a/packages/compiler-cli/src/ngtsc/metadata/src/reflector.ts +++ b/packages/compiler-cli/src/ngtsc/metadata/src/reflector.ts @@ -119,7 +119,7 @@ export class TypeScriptReflectionHost implements ReflectionHost { } this.checker.getExportsOfModule(symbol).forEach(exportSymbol => { // Map each exported Symbol to a Declaration and add it to the map. - const decl = this._getDeclarationOfSymbol(exportSymbol); + const decl = this.getDeclarationOfSymbol(exportSymbol); if (decl !== null) { map.set(exportSymbol.name, decl); } @@ -138,7 +138,7 @@ export class TypeScriptReflectionHost implements ReflectionHost { if (symbol === undefined) { return null; } - return this._getDeclarationOfSymbol(symbol); + return this.getDeclarationOfSymbol(symbol); } /** @@ -146,7 +146,7 @@ export class TypeScriptReflectionHost implements ReflectionHost { * * @internal */ - protected _getDeclarationOfSymbol(symbol: ts.Symbol): Declaration|null { + protected getDeclarationOfSymbol(symbol: ts.Symbol): Declaration|null { let viaModule: string|null = null; // Look through the Symbol's immediate declarations, and see if any of them are import-type // statements.