refactor(ivy): rename class/style to make space for new instruction (#22719)
Rename: - `elementClass` (short: `k`) => `elementClassNamed` (short: `kn`) - `elementStyle` (short: `s`) => `elementStyleNamed` (short: `sn`) Currently `[class.name]` is `elementClass(0, ‘name’, value)`. We would like to introduce new binding `[class]` which needs a new instruction ideally `elementClass(0, value)`. Doing the rename creates space to create such an instruction in subsequent change. PR Close #22719
This commit is contained in:

committed by
Kara Erickson

parent
ae19d071bb
commit
a0a01f1e1e
@ -26,9 +26,9 @@ export class Identifiers {
|
||||
|
||||
static elementAttribute: o.ExternalReference = {name: 'ɵa', moduleName: CORE};
|
||||
|
||||
static elementClass: o.ExternalReference = {name: 'ɵk', moduleName: CORE};
|
||||
static elementClassNamed: o.ExternalReference = {name: 'ɵkn', moduleName: CORE};
|
||||
|
||||
static elementStyle: o.ExternalReference = {name: 'ɵs', moduleName: CORE};
|
||||
static elementStyleNamed: o.ExternalReference = {name: 'ɵsn', moduleName: CORE};
|
||||
|
||||
static containerCreate: o.ExternalReference = {name: 'ɵC', moduleName: CORE};
|
||||
|
||||
|
@ -210,8 +210,8 @@ function unsupported(feature: string): never {
|
||||
const BINDING_INSTRUCTION_MAP: {[index: number]: o.ExternalReference | undefined} = {
|
||||
[PropertyBindingType.Property]: R3.elementProperty,
|
||||
[PropertyBindingType.Attribute]: R3.elementAttribute,
|
||||
[PropertyBindingType.Class]: R3.elementClass,
|
||||
[PropertyBindingType.Style]: R3.elementStyle
|
||||
[PropertyBindingType.Class]: R3.elementClassNamed,
|
||||
[PropertyBindingType.Style]: R3.elementStyleNamed
|
||||
};
|
||||
|
||||
function interpolate(args: o.Expression[]): o.Expression {
|
||||
|
Reference in New Issue
Block a user