I'm trying to create new Root Node from a mapping script (pre-process input model, modifies model).
Script inspects existing nodes and creates something like 'all-together' node of the same kind as other root nodes.
genContext.inputModel.new root node(...)
genContext.outputModel.new root node(...)
I see my created node in transient models at step 1_0, it is not distinguishable from other similar nodes.
However, on the next step (in transient models), all nodes except this new are correctly transformed according generator mapping. This new node remained as is (in source language).
Calling .isDurty on this node causes:
[jetbrains.mps.generator.impl.dependencies.IncrementalDependenciiesBuilder] consistency problem in dependencies map
Textgen is correctly applied to original root nodes transformed to target language, but newly created node remains unchanged.
My question is, are mapping scripts allowed to create new root nodes?