[ATL] "If then else" with multiple code lines Syntax problem [message #92985] |
Tue, 21 October 2008 11:50  |
Eclipse User |
|
|
|
Hi,
I have a problem writing this recursive helper, it seems like i cannot
have multiple code lines in the "if then else" statement of a helper! Do
you have a solution for this?
helper context UML2!Package def : getAllChildren () :
OrderedSet(UML2!Package) =
self.nestedPackage->iterate( child ; elements : OrderedSet(UML2!Package) =
OrderedSet{} |
if not(child.packageIsLeaf()) then
{elements.append(child);
elements.union(child.getAllChildren ());
}
else
{ elements.append(child);}
endif
)
;
Can anybody help ?!!
Skander TURKI
skander.turki@gmail.com
Université de Bretagne-Sud, Lorient
Lab-STICC (Lanester) laboratory
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04907 seconds