fixed scoping problem with new symbol table code
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1029 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -23,15 +23,6 @@ public class SymbolTableBuilder extends JavaParserVisitorAdapter {
|
||||
return table;
|
||||
}
|
||||
|
||||
/**
|
||||
* Skip interfaces because they don't have local variables.
|
||||
*/
|
||||
/*
|
||||
public Object visit(ASTInterfaceDeclaration node, Object data) {
|
||||
return data;
|
||||
}
|
||||
*/
|
||||
|
||||
// these AST types trigger a new scope
|
||||
public Object visit(ASTBlock node, Object data){return openScope(node);}
|
||||
public Object visit(ASTConstructorDeclaration node, Object data){return openScope(node);}
|
||||
|
Reference in New Issue
Block a user