X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ASTVisitor.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ASTVisitor.java index 06b7659..55769aa 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ASTVisitor.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ASTVisitor.java @@ -10,9 +10,75 @@ *******************************************************************************/ package net.sourceforge.phpdt.internal.compiler; -import net.sourceforge.phpdt.core.compiler.*; -import net.sourceforge.phpeclipse.internal.compiler.ast.*; -import net.sourceforge.phpdt.internal.compiler.lookup.*; +import net.sourceforge.phpdt.core.compiler.IProblem; +import net.sourceforge.phpdt.internal.compiler.lookup.BlockScope; +import net.sourceforge.phpdt.internal.compiler.lookup.ClassScope; +import net.sourceforge.phpdt.internal.compiler.lookup.CompilationUnitScope; +import net.sourceforge.phpdt.internal.compiler.lookup.MethodScope; +import net.sourceforge.phpeclipse.internal.compiler.ast.AND_AND_Expression; +import net.sourceforge.phpeclipse.internal.compiler.ast.AllocationExpression; +import net.sourceforge.phpeclipse.internal.compiler.ast.Argument; +import net.sourceforge.phpeclipse.internal.compiler.ast.ArrayAllocationExpression; +import net.sourceforge.phpeclipse.internal.compiler.ast.ArrayInitializer; +import net.sourceforge.phpeclipse.internal.compiler.ast.ArrayQualifiedTypeReference; +import net.sourceforge.phpeclipse.internal.compiler.ast.ArrayReference; +import net.sourceforge.phpeclipse.internal.compiler.ast.ArrayTypeReference; +import net.sourceforge.phpeclipse.internal.compiler.ast.AssertStatement; +import net.sourceforge.phpeclipse.internal.compiler.ast.Assignment; +import net.sourceforge.phpeclipse.internal.compiler.ast.BinaryExpression; +import net.sourceforge.phpeclipse.internal.compiler.ast.Block; +import net.sourceforge.phpeclipse.internal.compiler.ast.BreakStatement; +import net.sourceforge.phpeclipse.internal.compiler.ast.CaseStatement; +import net.sourceforge.phpeclipse.internal.compiler.ast.CastExpression; +import net.sourceforge.phpeclipse.internal.compiler.ast.Clinit; +import net.sourceforge.phpeclipse.internal.compiler.ast.CompilationUnitDeclaration; +import net.sourceforge.phpeclipse.internal.compiler.ast.CompoundAssignment; +import net.sourceforge.phpeclipse.internal.compiler.ast.ConditionalExpression; +import net.sourceforge.phpeclipse.internal.compiler.ast.ConstructorDeclaration; +import net.sourceforge.phpeclipse.internal.compiler.ast.ContinueStatement; +import net.sourceforge.phpeclipse.internal.compiler.ast.DoStatement; +import net.sourceforge.phpeclipse.internal.compiler.ast.DoubleLiteral; +import net.sourceforge.phpeclipse.internal.compiler.ast.EmptyStatement; +import net.sourceforge.phpeclipse.internal.compiler.ast.EqualExpression; +import net.sourceforge.phpeclipse.internal.compiler.ast.ExplicitConstructorCall; +import net.sourceforge.phpeclipse.internal.compiler.ast.ExtendedStringLiteral; +import net.sourceforge.phpeclipse.internal.compiler.ast.FalseLiteral; +import net.sourceforge.phpeclipse.internal.compiler.ast.FieldDeclaration; +import net.sourceforge.phpeclipse.internal.compiler.ast.FieldReference; +import net.sourceforge.phpeclipse.internal.compiler.ast.FloatLiteral; +import net.sourceforge.phpeclipse.internal.compiler.ast.ForStatement; +import net.sourceforge.phpeclipse.internal.compiler.ast.IfStatement; +import net.sourceforge.phpeclipse.internal.compiler.ast.ImportReference; +import net.sourceforge.phpeclipse.internal.compiler.ast.Initializer; +import net.sourceforge.phpeclipse.internal.compiler.ast.InstanceOfExpression; +import net.sourceforge.phpeclipse.internal.compiler.ast.IntLiteral; +import net.sourceforge.phpeclipse.internal.compiler.ast.LabeledStatement; +import net.sourceforge.phpeclipse.internal.compiler.ast.LocalDeclaration; +import net.sourceforge.phpeclipse.internal.compiler.ast.LongLiteral; +import net.sourceforge.phpeclipse.internal.compiler.ast.MessageSend; +import net.sourceforge.phpeclipse.internal.compiler.ast.MethodDeclaration; +import net.sourceforge.phpeclipse.internal.compiler.ast.NullLiteral; +import net.sourceforge.phpeclipse.internal.compiler.ast.OR_OR_Expression; +import net.sourceforge.phpeclipse.internal.compiler.ast.PostfixExpression; +import net.sourceforge.phpeclipse.internal.compiler.ast.PrefixExpression; +import net.sourceforge.phpeclipse.internal.compiler.ast.QualifiedAllocationExpression; +import net.sourceforge.phpeclipse.internal.compiler.ast.QualifiedNameReference; +import net.sourceforge.phpeclipse.internal.compiler.ast.QualifiedSuperReference; +import net.sourceforge.phpeclipse.internal.compiler.ast.QualifiedThisReference; +import net.sourceforge.phpeclipse.internal.compiler.ast.QualifiedTypeReference; +import net.sourceforge.phpeclipse.internal.compiler.ast.ReturnStatement; +import net.sourceforge.phpeclipse.internal.compiler.ast.SingleNameReference; +import net.sourceforge.phpeclipse.internal.compiler.ast.SingleTypeReference; +import net.sourceforge.phpeclipse.internal.compiler.ast.StringLiteral; +import net.sourceforge.phpeclipse.internal.compiler.ast.SuperReference; +import net.sourceforge.phpeclipse.internal.compiler.ast.SwitchStatement; +import net.sourceforge.phpeclipse.internal.compiler.ast.ThisReference; +import net.sourceforge.phpeclipse.internal.compiler.ast.ThrowStatement; +import net.sourceforge.phpeclipse.internal.compiler.ast.TrueLiteral; +import net.sourceforge.phpeclipse.internal.compiler.ast.TryStatement; +import net.sourceforge.phpeclipse.internal.compiler.ast.TypeDeclaration; +import net.sourceforge.phpeclipse.internal.compiler.ast.UnaryExpression; +import net.sourceforge.phpeclipse.internal.compiler.ast.WhileStatement; /** * A visitor for iterating through the parse tree. @@ -99,21 +165,16 @@ public abstract class ASTVisitor { public void endVisit(Block block, BlockScope scope) { // do nothing by default } - public void endVisit(Break breakStatement, BlockScope scope) { + public void endVisit(BreakStatement breakStatement, BlockScope scope) { // do nothing by default } - public void endVisit(Case caseStatement, BlockScope scope) { + public void endVisit(CaseStatement caseStatement, BlockScope scope) { // do nothing by default } public void endVisit(CastExpression castExpression, BlockScope scope) { // do nothing by default } - public void endVisit(CharLiteral charLiteral, BlockScope scope) { - // do nothing by default - } - public void endVisit(ClassLiteralAccess classLiteral, BlockScope scope) { - // do nothing by default - } + public void endVisit(Clinit clinit, ClassScope scope) { // do nothing by default } @@ -135,7 +196,7 @@ public abstract class ASTVisitor { ClassScope scope) { // do nothing by default } - public void endVisit(Continue continueStatement, BlockScope scope) { + public void endVisit(ContinueStatement continueStatement, BlockScope scope) { // do nothing by default } public void endVisit(DoStatement doStatement, BlockScope scope) { @@ -279,11 +340,7 @@ public abstract class ASTVisitor { public void endVisit(SwitchStatement switchStatement, BlockScope scope) { // do nothing by default } - public void endVisit( - SynchronizedStatement synchronizedStatement, - BlockScope scope) { - // do nothing by default - } + public void endVisit(ThisReference thisReference, BlockScope scope) { // do nothing by default } @@ -395,21 +452,16 @@ public abstract class ASTVisitor { public boolean visit(Block block, BlockScope scope) { return true; // do nothing by default, keep traversing } - public boolean visit(Break breakStatement, BlockScope scope) { + public boolean visit(BreakStatement breakStatement, BlockScope scope) { return true; // do nothing by default, keep traversing } - public boolean visit(Case caseStatement, BlockScope scope) { + public boolean visit(CaseStatement caseStatement, BlockScope scope) { return true; // do nothing by default, keep traversing } public boolean visit(CastExpression castExpression, BlockScope scope) { return true; // do nothing by default, keep traversing } - public boolean visit(CharLiteral charLiteral, BlockScope scope) { - return true; // do nothing by default, keep traversing - } - public boolean visit(ClassLiteralAccess classLiteral, BlockScope scope) { - return true; // do nothing by default, keep traversing - } + public boolean visit(Clinit clinit, ClassScope scope) { return true; // do nothing by default, keep traversing } @@ -431,7 +483,7 @@ public abstract class ASTVisitor { ClassScope scope) { return true; // do nothing by default, keep traversing } - public boolean visit(Continue continueStatement, BlockScope scope) { + public boolean visit(ContinueStatement continueStatement, BlockScope scope) { return true; // do nothing by default, keep traversing } public boolean visit(DoStatement doStatement, BlockScope scope) { @@ -577,11 +629,7 @@ public abstract class ASTVisitor { public boolean visit(SwitchStatement switchStatement, BlockScope scope) { return true; // do nothing by default, keep traversing } - public boolean visit( - SynchronizedStatement synchronizedStatement, - BlockScope scope) { - return true; // do nothing by default, keep traversing - } + public boolean visit(ThisReference thisReference, BlockScope scope) { return true; // do nothing by default, keep traversing }