Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Anders Nilsson
OwlCompiler
Commits
10c97b29
Commit
10c97b29
authored
Jan 14, 2011
by
Anders Nilsson
Browse files
Update
parent
c1ed9884
Changes
1
Hide whitespace changes
Inline
Side-by-side
Rewrites.jrag
View file @
10c97b29
...
...
@@ -227,6 +227,22 @@ aspect MiscUtilities {
}
aspect RewriteClasses {
rewrite Declaration {
when (isClassDecl())
to ClassDeclaration {
ClassDeclaration c = new ClassDeclaration();
c.setElementList(getElementList());
return c;
}
when (isIndividualDecl())
to IndividualDeclaration {
IndividualDeclaration c = new IndividualDeclaration();
c.setElementList(getElementList());
return c;
}
}
rewrite OwlClass {
when (isTopLevel())
to OwlClassDecl {
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment