Lets say you have the following code in xTend:
class StackOverflowGenerator {
def generate()'''
«var counter = 0»
«FOR i : 0 ..<10»
Line Numnber: «i»
«counter = counter + 1»
«ENDFOR»
'''
}
This will generate output in the format:
Line Numnber: 0
1
Line Numnber: 1
2
Line Numnber: 2
3
Line Numnber: 3
...
How do I get xTend to not print the line with just the counter and only print the Line Number line such that the output looks like:
Line Numnber: 0
Line Numnber: 1
Line Numnber: 2
Line Numnber: 3
...