From ef0ff78de2082293bf3cc54ed6324de02faff8ce Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Thu, 18 Sep 2025 11:27:19 +0200 Subject: [PATCH] refactor(compiler): expose member decorator identifiers (#63904) Adds the member decorators to the map of exposed compiler symbols. PR Close #63904 --- packages/compiler/src/render3/r3_identifiers.ts | 11 +++++++++++ packages/core/test/render3/jit_environment_spec.ts | 6 ++++++ 2 files changed, 17 insertions(+) diff --git a/packages/compiler/src/render3/r3_identifiers.ts b/packages/compiler/src/render3/r3_identifiers.ts index 3c48d64de48..c2cf7044785 100644 --- a/packages/compiler/src/render3/r3_identifiers.ts +++ b/packages/compiler/src/render3/r3_identifiers.ts @@ -477,6 +477,17 @@ export class Identifiers { moduleName: CORE, }; + // Decorators + static inputDecorator: o.ExternalReference = {name: 'Input', moduleName: CORE}; + static outputDecorator: o.ExternalReference = {name: 'Output', moduleName: CORE}; + static viewChildDecorator: o.ExternalReference = {name: 'ViewChild', moduleName: CORE}; + static viewChildrenDecorator: o.ExternalReference = {name: 'ViewChildren', moduleName: CORE}; + static contentChildDecorator: o.ExternalReference = {name: 'ContentChild', moduleName: CORE}; + static contentChildrenDecorator: o.ExternalReference = { + name: 'ContentChildren', + moduleName: CORE, + }; + // type-checking static InputSignalBrandWriteType = {name: 'ɵINPUT_SIGNAL_BRAND_WRITE_TYPE', moduleName: CORE}; static UnwrapDirectiveSignalInputs = {name: 'ɵUnwrapDirectiveSignalInputs', moduleName: CORE}; diff --git a/packages/core/test/render3/jit_environment_spec.ts b/packages/core/test/render3/jit_environment_spec.ts index 87db419d252..1184eaa4920 100644 --- a/packages/core/test/render3/jit_environment_spec.ts +++ b/packages/core/test/render3/jit_environment_spec.ts @@ -29,6 +29,12 @@ const INTERFACE_EXCEPTIONS = new Set([ const AOT_ONLY = new Set([ 'ɵsetClassMetadata', 'ɵsetClassMetadataAsync', + 'Input', + 'Output', + 'ViewChild', + 'ViewChildren', + 'ContentChild', + 'ContentChildren', // used in type-checking. 'ɵINPUT_SIGNAL_BRAND_WRITE_TYPE',