Jos Warmer
Jos Warmer
Another option is using the generation gap pattern, this allows for all kind of tuning of the AST code, not just for initialization.
This should not be done on the box providers, they are only used by the editor, so won't change the model unless it is opened in the editor. They are...
@dslmeinte An optional factory is also an option indeed. And defining a template is also interesting, but less flexible as you cannot add code easily (unless treated as text).
Actually the generation gap pattern is even more flexible as it allows not only the initialisation to be adjusted but everything else as well.
Mandatory children that have only one possible concrete concept type are now added automatically with their parent.
For now the creation of mandatory children solves the main problem, we don't plan to make this generic as described above.
Done another baatch
Outdated, should use eslint now.
Ctrl-Z, Ctrl-Y and Ctrl-C work now. Others will follow.
Should be ok in 2.0.0-beta.4.