Adding :: generates faulty code
When I add a read/write context of type
Submitted by Jeff Smits on 11 May 2015 at 19:22Scope
to arrow-sc->
that always returns aConstraint
, the generated code forR_sc_Constraint
gains an@Child
field_1
of typeI_Scope
, which makes sense.
But then in the constructor of that Java class, it callsadoptChild
, butR_*
classes don’t extendAbstractNode
so that leaves me with faulty code. If I try to removeadoptChild
the code compiles. But I’m not sure if that’s the correct approach, as the old way of doing this was using an extra constructorScC
to return both aScope
andConstraint
(and use a read contextScope
), and that constructor extendedAbstractNode
and had aspecializeChildren
defined.
Log in to post comments