Skip to content
Snippets Groups Projects
Commit 10c97b29 authored by Anders Nilsson's avatar Anders Nilsson
Browse files

Update

parent c1ed9884
Branches
No related tags found
No related merge requests found
...@@ -227,6 +227,22 @@ aspect MiscUtilities { ...@@ -227,6 +227,22 @@ aspect MiscUtilities {
} }
aspect RewriteClasses { 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 { rewrite OwlClass {
when (isTopLevel()) when (isTopLevel())
to OwlClassDecl { to OwlClassDecl {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment