Community
Participate
Working Groups
It is currently not possible to infer a type in the jvmmodelinferrer without actually assigning it a body to something (logical container magic) Lets asume following grammar ============================================== Model: elements+=Element*; Element: "field" name=ID "=" init=XExpression; ============================================== i want to create simple beans from that ============================================== val f = e.toField(e.name, inferredType(e.init)) [] members += f members += e.toGetter(e.name, inferredType(e.init)) members += e.toSetter(e.name, inferredType(e.init)) ============================================== this is acutally not working since the inference does not work. Cannot infer type from recursive usage. Type 'Object' is used.
see http://www.eclipse.org/forums/index.php/t/461747/ too