Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: emit pure annotations to static property initializers #43344

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/animations/browser/src/render/animation_driver.ts
Expand Up @@ -47,7 +47,7 @@ export class NoopAnimationDriver implements AnimationDriver {
* @publicApi
*/
export abstract class AnimationDriver {
static NOOP: AnimationDriver = /* @__PURE__ */ new NoopAnimationDriver();
static NOOP: AnimationDriver = (/* @__PURE__ */ new NoopAnimationDriver());

abstract validateStyleProperty(prop: string): boolean;

Expand Down
Expand Up @@ -44,7 +44,7 @@ export function packageNonAnimatableStyles(
* `destroy()` is called then all styles will be removed.
*/
export class SpecialCasedStyles {
static initialStylesByElement = /* @__PURE__ */ new WeakMap<any, {[key: string]: any}>();
static initialStylesByElement = (/* @__PURE__ */ new WeakMap<any, {[key: string]: any}>());

private _state = SpecialCasedStylesState.Pending;
private _initialStyles!: {[key: string]: any};
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/di/injector.ts
Expand Up @@ -59,7 +59,7 @@ export const INJECTOR_IMPL = INJECTOR_IMPL__PRE_R3__;
*/
export abstract class Injector {
static THROW_IF_NOT_FOUND = THROW_IF_NOT_FOUND;
static NULL: Injector = /* @__PURE__ */ new NullInjector();
static NULL: Injector = (/* @__PURE__ */ new NullInjector());

/**
* Retrieves an instance from the injector based on the provided token.
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/di/reflective_injector.ts
Expand Up @@ -270,7 +270,7 @@ export abstract class ReflectiveInjector implements Injector {
}

export class ReflectiveInjector_ implements ReflectiveInjector {
private static INJECTOR_KEY = /* @__PURE__ */ ReflectiveKey.get(Injector);
private static INJECTOR_KEY = (/* @__PURE__ */ ReflectiveKey.get(Injector));
/** @internal */
_constructionCounter: number = 0;
/** @internal */
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/linker/component_factory_resolver.ts
Expand Up @@ -46,7 +46,7 @@ of the code in this cookbook
* @publicApi
*/
export abstract class ComponentFactoryResolver {
static NULL: ComponentFactoryResolver = /* @__PURE__ */ new _NullComponentFactoryResolver();
static NULL: ComponentFactoryResolver = (/* @__PURE__ */ new _NullComponentFactoryResolver());
/**
* Retrieves the factory object that creates a component of the given type.
* @param component The component type.
Expand Down