Xpand or Xtext function NOCODE [message #1703586] |
Mon, 03 August 2015 08:06  |
Eclipse User |
|
|
|
Hello all,
I need a kind of function in the xpand or xtent language, which suppress the output of the FOREACH-Loops (CR, LF, Space or TAB) and IF-Sequences by doing normal calculation.
If code is written in normal way, often code is indent like the following:
«FOREACH ...
«FOREACH c.eAllContents ....
«set ...
«get ...
«ENDFOREACH-»
«ENDFOREACH-»
This is especially necessary for having a better view on the code and changing it afterwards. If the example above is done in Xpand the results looks bad!
I know I can add ")->>" or ")->"">>" but there are still new lines which I do not want.
In other languages there are similar function called [!NOCODE!].
[!NOCODE!]
...
... some code
....
[!ENDNOCODE!]
Is there a kind of function in Xpand also?
The solution could also be a JAVA function for Xtent.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02902 seconds