Refactorings

Is this aspect widely used?

No, even in MPS languages there are just a few use cases.

Can I change the concept of a node while keeping all properties, references and children?

Yes, call RefacoringRuntime.replaceWithNewConcept with your node and new concept. In this class there are also some othere useful methods such as changePropertyInstance(node, oldProp, newProp) and changeReferenceLinkInstances(node, oldLink, newLink).

Specific Languages Blog — Changing the concept of a node


Last update: March 17, 2022

Comments

Back to top