Skip to content

Commit a3094f2

Browse files
crisbetothePunderWoman
authored andcommitted
refactor(compiler): expose member decorator identifiers (#63904)
Adds the member decorators to the map of exposed compiler symbols. PR Close #63904
1 parent ba00432 commit a3094f2

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
@@ -477,6 +477,17 @@ export class Identifiers {
477477
moduleName: CORE,
478478
};
479479

480+
// Decorators
481+
static inputDecorator: o.ExternalReference = {name: 'Input', moduleName: CORE};
482+
static outputDecorator: o.ExternalReference = {name: 'Output', moduleName: CORE};
483+
static viewChildDecorator: o.ExternalReference = {name: 'ViewChild', moduleName: CORE};
484+
static viewChildrenDecorator: o.ExternalReference = {name: 'ViewChildren', moduleName: CORE};
485+
static contentChildDecorator: o.ExternalReference = {name: 'ContentChild', moduleName: CORE};
486+
static contentChildrenDecorator: o.ExternalReference = {
487+
name: 'ContentChildren',
488+
moduleName: CORE,
489+
};
490+
480491
// type-checking
481492
static InputSignalBrandWriteType = {name: 'ɵINPUT_SIGNAL_BRAND_WRITE_TYPE', moduleName: CORE};
482493
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)