Skip to content

Commit

Permalink
FORGE-481
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandro Sonntag authored and lincolnthree committed Mar 24, 2012
1 parent 191baa9 commit 8c1c1da
Showing 1 changed file with 12 additions and 3 deletions.
Expand Up @@ -37,21 +37,30 @@ public class TypeDeclarationFinderVisitor extends ASTVisitor
@Override
public boolean visit(final TypeDeclaration node)
{
declaration = node;
if (declaration == null)
{
declaration = node;
}
return true;
}

@Override
public boolean visit(final AnnotationTypeDeclaration node)
{
declaration = node;
if (declaration == null)
{
declaration = node;
}
return super.visit(node);
}

@Override
public boolean visit(final EnumDeclaration node)
{
declaration = node;
if (declaration == null)
{
declaration = node;
}
return super.visit(node);
}

Expand Down

0 comments on commit 8c1c1da

Please sign in to comment.