i have a template fragment of InstanceMethodDeclaration as its root. Within that i have several macros where one in StatementList is depending on the preceding execution of the macro around ParameterDeclaration. But the execution order of the macros is (deterministic) not as i want it. It is as follows:
1.) name-Attribute (used for method name)
2.) returnType (Type)
3.) body (StatementList) -> Statements within that list in a consecutive way
4.) parameter (ParameterDeclaration)
- Is there a declarative way to change that order in any way (i want to switch 3. and 4.)? Or may i force execution of 4. while executing macro of 3.?
- How is the logic that calculates the order for macro-execution? (Attributes before children? Children seem to be ordered by cardinality -> "1" before "0..n"?)
I know that i may do what i want via the post-processing-script but not that easy and understandable as i could do when the order changes.