Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Jastadd2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JastAdd
Jastadd2
Commits
765a0233
Commit
765a0233
authored
9 years ago
by
Jesper
Browse files
Options
Downloads
Patches
Plain Diff
Generate getXNoTransform(int) for list children
fixes #254 (bitbucket)
parent
63de7884
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+5
-0
5 additions, 0 deletions
ChangeLog
src/template/ast/components/ListComponent.tt
+10
-0
10 additions, 0 deletions
src/template/ast/components/ListComponent.tt
with
15 additions
and
0 deletions
ChangeLog
+
5
−
0
View file @
765a0233
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
...
...
This diff is collapsed.
Click to expand it.
src/template/ast/components/ListComponent.tt
+
10
−
0
View file @
765a0233
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment