Methods
applyRemovalToDependant(interactiveDescriptor)
Apply the source code transformation to the definition of a component derived from the component where the change originated from.
Name | Type | Description |
---|---|---|
interactiveDescriptor | type | description |
applyRemovalToOrigin(interactiveDescriptor)
Applies the source code transformation to the definition of the component where the change originated from. We need to differentiate between alteration of an interhited structure via without()
or the simple removal of a spec (add() or part() or {}) from the submorphs array in the component definition.
Name | Type | Description |
---|---|---|
interactiveDescriptor | InteractiveDescriptor | The descriptor of the component definition the change originated from. |
dropSpec(interactiveDescriptor)
Removes a morph from the 'submorphs' property of a component definition. If there's only one morph left in the 'submorphs' array, the entire 'submorphs' property will be removed. The method updates the changes array with the appropriate removal actions and marks the associated module for linting.
Name | Type | Description |
---|---|---|
interactiveDescriptor | type | The descriptor pointing to the affected component definition. |
insertWithoutCall(interactiveDescriptor)
Reconciles the removal of a morph with the replacement or insertation of a without() call that denotes the structural change in the structure inherited from the parent component.
Name | Type | Description |
---|---|---|
interactiveDescriptor | InteractiveDescriptor | The component descriptor of the definition getting reconciled. |