Skip to content
Discussion options

You must be logged in to vote

The beginning of the line is duplicated to keep the alignment (indentation) of the generated block (see the white space section of the documentation). In the first example this block is [if (procedure.para... so anything generated before on the same line will be repeated type MY_TYPE is access procedure in this case.
One way to deal with this is to start the block at the beginning of the line:

['type ' + procedure.genName() + ' is access procedure'
  + if procedure.parameter->notEmpty() then
       ';'
     else
       procedure.parameter.genParameters()->sep('\n    (', ';\n     ', ')')
     endif
/]

Here we use the if AQL expression (the else is mandatory), also note that indentation i…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Bourguq
Comment options

Answer selected by Bourguq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants