From 22058298d350699e57af2a902b1b91a7b4e1aced Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Mon, 30 Jan 2017 16:25:15 -0800 Subject: [PATCH] fix(closure): suppress some closure compiler warnings (#14198) PR Close #14198 --- modules/@angular/core/src/application_ref.ts | 8 ++++++++ modules/@angular/core/src/di/injector.ts | 1 + modules/@angular/core/src/linker/component_factory.ts | 4 ++++ modules/@angular/core/src/linker/template_ref.ts | 4 ++++ 4 files changed, 17 insertions(+) diff --git a/modules/@angular/core/src/application_ref.ts b/modules/@angular/core/src/application_ref.ts index 6333f77b6e..f89a6611a7 100644 --- a/modules/@angular/core/src/application_ref.ts +++ b/modules/@angular/core/src/application_ref.ts @@ -243,6 +243,10 @@ function _callAndReportToErrorHandler(errorHandler: ErrorHandler, callback: () = } } +/** + * workaround https://github.com/angular/tsickle/issues/350 + * @suppress {checkTypes} + */ @Injectable() export class PlatformRef_ extends PlatformRef { private _modules: NgModuleRef[] = []; @@ -404,6 +408,10 @@ export abstract class ApplicationRef { abstract get viewCount(): number; } +/** + * workaround https://github.com/angular/tsickle/issues/350 + * @suppress {checkTypes} + */ @Injectable() export class ApplicationRef_ extends ApplicationRef { /** @internal */ diff --git a/modules/@angular/core/src/di/injector.ts b/modules/@angular/core/src/di/injector.ts index a587d5f747..8550adfa11 100644 --- a/modules/@angular/core/src/di/injector.ts +++ b/modules/@angular/core/src/di/injector.ts @@ -57,6 +57,7 @@ export abstract class Injector { abstract get(token: Type|InjectionToken, notFoundValue?: T): T; /** * @deprecated from v4.0.0 use Type or InjectToken + * @suppress {duplicate} */ abstract get(token: any, notFoundValue?: any): any; } diff --git a/modules/@angular/core/src/linker/component_factory.ts b/modules/@angular/core/src/linker/component_factory.ts index b8ef639bd6..7c464c1630 100644 --- a/modules/@angular/core/src/linker/component_factory.ts +++ b/modules/@angular/core/src/linker/component_factory.ts @@ -67,6 +67,10 @@ export abstract class ComponentRef { abstract onDestroy(callback: Function): void; } +/** + * workaround https://github.com/angular/tsickle/issues/350 + * @suppress {checkTypes} + */ export class ComponentRef_ extends ComponentRef { constructor( private _index: number, private _parentView: AppView, private _nativeElement: any, diff --git a/modules/@angular/core/src/linker/template_ref.ts b/modules/@angular/core/src/linker/template_ref.ts index cdeb9235da..649af6da3d 100644 --- a/modules/@angular/core/src/linker/template_ref.ts +++ b/modules/@angular/core/src/linker/template_ref.ts @@ -42,6 +42,10 @@ export abstract class TemplateRef { abstract createEmbeddedView(context: C): EmbeddedViewRef; } +/** + * workaround https://github.com/angular/tsickle/issues/350 + * @suppress {checkTypes} + */ export class TemplateRef_ extends TemplateRef { constructor( private _parentView: AppView, private _nodeIndex: number, private _nativeElement: any) {