Tuple type availability in Acceleo OCL [message #1804882] |
Tue, 02 April 2019 17:22  |
|
Hi,
I decided to post the question here not at Acceleo forum because I believe that the problem conforms more to OCL than to Acceleo. I'm trying to improve the behaviour of Quick Fix in Acceleo so my problem is rather sophisticated then practical. But it is interesting (at least for me).
Does the OCL parser used in Acceleo recognize the Tuple type? Ican write something like: Tuple{a=5,b='',c=Tuple{a=5}} in the template invocation. The parser recognizes it producing the following marker:
Cannot find operation (ttt(Tuple(a : Integer, b : String, c : Tuple(a : Integer)))) for the type (Class)
which suggest that syntactically all is OK. But if I try to generate template for this type:
[template public ttt (aClass : Class, aTupleOfInteger_String_TupleOfInteger : Tuple(a : Integer, b : String, c : Tuple(a : Integer))) ][/template]]
I get two markers:
Invalid Type: Tuple(a : Integer and Invalid Type: Tuple(a : Integer))
So is the Tuple correct or no? Or maybe it should be declared in different way?
Tomek
Tomasz Babczyński
|
|
|
|
Powered by
FUDForum. Page generated in 0.02464 seconds