From 5db3a6b198521b92a5abc934752adf69b3ced68e Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Wed, 30 Jan 2019 11:50:38 +0200 Subject: [PATCH] refactor(ivy): remove unnecessary method from ngtsc's `RouterEntryPoint` (#28542) PR Close #28542 --- packages/compiler-cli/src/ngtsc/routing/src/route.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/compiler-cli/src/ngtsc/routing/src/route.ts b/packages/compiler-cli/src/ngtsc/routing/src/route.ts index 740a636d8f..8218fe4eb2 100644 --- a/packages/compiler-cli/src/ngtsc/routing/src/route.ts +++ b/packages/compiler-cli/src/ngtsc/routing/src/route.ts @@ -15,10 +15,8 @@ export abstract class RouterEntryPoint { abstract readonly moduleName: string; - // Alias of moduleName. + // Alias of moduleName for compatibility with what `ngtools_api` returned. abstract readonly name: string; - - abstract toString(): string; } class RouterEntryPointImpl implements RouterEntryPoint { @@ -26,7 +24,8 @@ class RouterEntryPointImpl implements RouterEntryPoint { get name(): string { return this.moduleName; } - toString(): string { return `${this.filePath}#${this.moduleName}`; } + // For debugging purposes. + toString(): string { return `RouterEntryPoint(name: ${this.name}, filePath: ${this.filePath})`; } } export class RouterEntryPointManager {