Skip to content

Commit a7be506

Browse files
crisbetothePunderWoman
authored andcommitted
refactor(core): add instructions for interpolating values (angular#61557)
Adds the new `interpolate*` instructions that can be passed into other instructions and used to replace our existing flavors of interpolations. PR Close angular#61557
1 parent 5537950 commit a7be506

6 files changed

Lines changed: 397 additions & 0 deletions

File tree

packages/compiler/src/render3/r3_identifiers.ts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,47 @@ export class Identifiers {
213213
moduleName: CORE,
214214
};
215215

216+
static interpolate: o.ExternalReference = {
217+
name: 'ɵɵinterpolate',
218+
moduleName: CORE,
219+
};
220+
static interpolate1: o.ExternalReference = {
221+
name: 'ɵɵinterpolate1',
222+
moduleName: CORE,
223+
};
224+
static interpolate2: o.ExternalReference = {
225+
name: 'ɵɵinterpolate2',
226+
moduleName: CORE,
227+
};
228+
static interpolate3: o.ExternalReference = {
229+
name: 'ɵɵinterpolate3',
230+
moduleName: CORE,
231+
};
232+
static interpolate4: o.ExternalReference = {
233+
name: 'ɵɵinterpolate4',
234+
moduleName: CORE,
235+
};
236+
static interpolate5: o.ExternalReference = {
237+
name: 'ɵɵinterpolate5',
238+
moduleName: CORE,
239+
};
240+
static interpolate6: o.ExternalReference = {
241+
name: 'ɵɵinterpolate6',
242+
moduleName: CORE,
243+
};
244+
static interpolate7: o.ExternalReference = {
245+
name: 'ɵɵinterpolate7',
246+
moduleName: CORE,
247+
};
248+
static interpolate8: o.ExternalReference = {
249+
name: 'ɵɵinterpolate8',
250+
moduleName: CORE,
251+
};
252+
static interpolateV: o.ExternalReference = {
253+
name: 'ɵɵinterpolateV',
254+
moduleName: CORE,
255+
};
256+
216257
static nextContext: o.ExternalReference = {name: 'ɵɵnextContext', moduleName: CORE};
217258

218259
static resetView: o.ExternalReference = {name: 'ɵɵresetView', moduleName: CORE};

packages/core/src/core_render3_private_export.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,16 @@ export {
8282
ɵɵattributeInterpolate7,
8383
ɵɵattributeInterpolate8,
8484
ɵɵattributeInterpolateV,
85+
ɵɵinterpolate,
86+
ɵɵinterpolate1,
87+
ɵɵinterpolate2,
88+
ɵɵinterpolate3,
89+
ɵɵinterpolate4,
90+
ɵɵinterpolate5,
91+
ɵɵinterpolate6,
92+
ɵɵinterpolate7,
93+
ɵɵinterpolate8,
94+
ɵɵinterpolateV,
8595
ɵɵclassMap,
8696
ɵɵclassMapInterpolate1,
8797
ɵɵclassMapInterpolate2,

packages/core/src/render3/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ export {
6363
ɵɵattributeInterpolate7,
6464
ɵɵattributeInterpolate8,
6565
ɵɵattributeInterpolateV,
66+
ɵɵinterpolate,
67+
ɵɵinterpolate1,
68+
ɵɵinterpolate2,
69+
ɵɵinterpolate3,
70+
ɵɵinterpolate4,
71+
ɵɵinterpolate5,
72+
ɵɵinterpolate6,
73+
ɵɵinterpolate7,
74+
ɵɵinterpolate8,
75+
ɵɵinterpolateV,
6676
ɵɵclassMap,
6777
ɵɵclassMapInterpolate1,
6878
ɵɵclassMapInterpolate2,

packages/core/src/render3/instructions/all.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,4 @@ export * from './text_interpolation';
6464
export * from './two_way';
6565
export * from './let_declaration';
6666
export * from './attach_source_locations';
67+
export * from './value_interpolation';

0 commit comments

Comments
 (0)