Skip to content
Snippets Groups Projects
Commit 765a0233 authored by Jesper's avatar Jesper
Browse files

Generate getXNoTransform(int) for list children

fixes #254 (bitbucket)
parent 63de7884
No related branches found
No related tags found
No related merge requests found
2016-03-22 Jesper Öqvist <jesper.oqvist@cs.lth.se>
* Added code generation for getXNoTransform(int) to access list children
without triggering rewrites.
2016-03-21 Jesper Öqvist <jesper.oqvist@cs.lth.se>
* Added --safeLazy option which allows non-circular attributes to be
......
......@@ -91,6 +91,16 @@ $endif
$SynchEnd
}
/**
* @return the element at index {@code i} in the $Name list without
* triggering rewrites.
*/
$Modifier $Type $Host.get$(Name)NoTransform(int i) {
$SynchBegin
return ($Type) (($ListType) getChildNoTransform($Index)).getChildNoTransform(i);
$SynchEnd
}
/**
* Check whether the $Name list has any children.
* @return {@code true} if it has at least one child, {@code false} otherwise.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment