From 5e98421d3315d52f316a3daf42f142bbcb0ba275 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Mon, 16 Jul 2018 14:08:59 +0100 Subject: [PATCH] style(ivy): remove underscore from TypeScriptReflectionHost._getDeclarationOfSymbol (#24897) The linter complains that non-private members must be marked with `@internal` if they start with an underscore. PR Close #24897 --- packages/compiler-cli/src/ngtsc/metadata/src/reflector.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.