fix(core): proper @internal and @nocollapse combined usage fix (#28138)
This update fixes the way the @internal and @nocollapse annotations are used together, which produced errors while running it with Closure compiler. Now two annotations are a part of the same comment block. PR Close #28138
This commit is contained in:
parent
d12db4e114
commit
f1fb62d1e5
|
@ -107,8 +107,10 @@ export abstract class ChangeDetectorRef {
|
|||
*/
|
||||
abstract reattach(): void;
|
||||
|
||||
/** @internal */
|
||||
/** @nocollapse */
|
||||
/**
|
||||
* @internal
|
||||
* @nocollapse
|
||||
*/
|
||||
static __NG_ELEMENT_ID__: () => ChangeDetectorRef = () => SWITCH_CHANGE_DETECTOR_REF_FACTORY();
|
||||
}
|
||||
|
||||
|
|
|
@ -50,8 +50,10 @@ export class ElementRef<T = any> {
|
|||
|
||||
constructor(nativeElement: T) { this.nativeElement = nativeElement; }
|
||||
|
||||
/** @internal */
|
||||
/** @nocollapse */
|
||||
/**
|
||||
* @internal
|
||||
* @nocollapse
|
||||
*/
|
||||
static __NG_ELEMENT_ID__: () => ElementRef = () => SWITCH_ELEMENT_REF_FACTORY(ElementRef);
|
||||
}
|
||||
|
||||
|
|
|
@ -53,8 +53,10 @@ export abstract class TemplateRef<C> {
|
|||
*/
|
||||
abstract createEmbeddedView(context: C): EmbeddedViewRef<C>;
|
||||
|
||||
/** @internal */
|
||||
/** @nocollapse */
|
||||
/**
|
||||
* @internal
|
||||
* @nocollapse
|
||||
*/
|
||||
static __NG_ELEMENT_ID__:
|
||||
() => TemplateRef<any>| null = () => SWITCH_TEMPLATE_REF_FACTORY(TemplateRef, ElementRef)
|
||||
}
|
||||
|
|
|
@ -144,8 +144,10 @@ export abstract class ViewContainerRef {
|
|||
*/
|
||||
abstract detach(index?: number): ViewRef|null;
|
||||
|
||||
/** @internal */
|
||||
/** @nocollapse */
|
||||
/**
|
||||
* @internal
|
||||
* @nocollapse
|
||||
*/
|
||||
static __NG_ELEMENT_ID__:
|
||||
() => ViewContainerRef = () => SWITCH_VIEW_CONTAINER_REF_FACTORY(ViewContainerRef, ElementRef)
|
||||
}
|
||||
|
|
|
@ -374,8 +374,10 @@ export abstract class Renderer2 {
|
|||
target: 'window'|'document'|'body'|any, eventName: string,
|
||||
callback: (event: any) => boolean | void): () => void;
|
||||
|
||||
/** @internal */
|
||||
/** @nocollapse */
|
||||
/**
|
||||
* @internal
|
||||
* @nocollapse
|
||||
*/
|
||||
static __NG_ELEMENT_ID__: () => Renderer2 = () => SWITCH_RENDERER2_FACTORY();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue