LOOP macro. Is it bug or what?

Hi,

I tried apply LOOP macro for the some statement, but in the generator output I see only one row. But if I wrap statement in the block statement or extract this statement in the field declaration of class it work's correctly. Why?

Code cut:

$LOOP$[SIB $[sibName] = new SIB(this, "$[sibName]")];

Result:

SIB sib3 = new SIB(this, "sib3");

Must be:

SIB sib1 = new SIB(this, "sib1");

SIB sib2 = new SIB(this, "sib2");

SIB sib3 = new SIB(this, "sib3");

TIA

3 comments
Comment actions Permalink

Hi,

probably the container is not StatementList (or whatever capable to hold list of statements).

0
Comment actions Permalink

It placed in the try section of TryCatchStatement.

0
Comment actions Permalink

All works perfectly. It's my mistake in truth. It happens because I didn't wrap the whole statement into the LOOP macros, I wraped up only content of the statement (right bracket of macro closes before ";" sing).

0

Please sign in to leave a comment.