Skip to content

Commit f28355a

Browse files
committed
refactor(compiler): expose member decorator identifiers (angular#63957)
Adds the member decorators to the map of exposed compiler symbols. PR Close angular#63957
1 parent 8ceac0b commit f28355a

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

packages/compiler/src/render3/r3_identifiers.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,17 @@ export class Identifiers {
480480
moduleName: CORE,
481481
};
482482

483+
// Decorators
484+
static inputDecorator: o.ExternalReference = {name: 'Input', moduleName: CORE};
485+
static outputDecorator: o.ExternalReference = {name: 'Output', moduleName: CORE};
486+
static viewChildDecorator: o.ExternalReference = {name: 'ViewChild', moduleName: CORE};
487+
static viewChildrenDecorator: o.ExternalReference = {name: 'ViewChildren', moduleName: CORE};
488+
static contentChildDecorator: o.ExternalReference = {name: 'ContentChild', moduleName: CORE};
489+
static contentChildrenDecorator: o.ExternalReference = {
490+
name: 'ContentChildren',
491+
moduleName: CORE,
492+
};
493+
483494
// type-checking
484495
static InputSignalBrandWriteType = {name: 'ɵINPUT_SIGNAL_BRAND_WRITE_TYPE', moduleName: CORE};
485496
static UnwrapDirectiveSignalInputs = {name: 'ɵUnwrapDirectiveSignalInputs', moduleName: CORE};

packages/core/test/render3/jit_environment_spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ const INTERFACE_EXCEPTIONS = new Set<string>([
2929
const AOT_ONLY = new Set<string>([
3030
'ɵsetClassMetadata',
3131
'ɵsetClassMetadataAsync',
32+
'Input',
33+
'Output',
34+
'ViewChild',
35+
'ViewChildren',
36+
'ContentChild',
37+
'ContentChildren',
3238

3339
// used in type-checking.
3440
'ɵINPUT_SIGNAL_BRAND_WRITE_TYPE',

0 commit comments

Comments
 (0)