X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/AbstractSyntaxTreeVisitorAdapter.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/AbstractSyntaxTreeVisitorAdapter.java index 5dae4e0..8be0b3f 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/AbstractSyntaxTreeVisitorAdapter.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/AbstractSyntaxTreeVisitorAdapter.java @@ -1,13 +1,13 @@ /******************************************************************************* - * Copyright (c) 2000, 2001, 2002 International Business Machines Corp. and others. + * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v0.5 + * are made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v05.html + * http://www.eclipse.org/legal/cpl-v10.html * * Contributors: * IBM Corporation - initial API and implementation - ******************************************************************************/ + *******************************************************************************/ package net.sourceforge.phpdt.internal.compiler; import net.sourceforge.phpdt.core.compiler.IProblem; @@ -24,17 +24,15 @@ import net.sourceforge.phpdt.internal.compiler.ast.AssertStatement; import net.sourceforge.phpdt.internal.compiler.ast.Assignment; import net.sourceforge.phpdt.internal.compiler.ast.BinaryExpression; import net.sourceforge.phpdt.internal.compiler.ast.Block; -import net.sourceforge.phpdt.internal.compiler.ast.Break; -import net.sourceforge.phpdt.internal.compiler.ast.Case; +import net.sourceforge.phpdt.internal.compiler.ast.BreakStatement; +import net.sourceforge.phpdt.internal.compiler.ast.CaseStatement; import net.sourceforge.phpdt.internal.compiler.ast.CastExpression; -import net.sourceforge.phpdt.internal.compiler.ast.CharLiteral; -import net.sourceforge.phpdt.internal.compiler.ast.ClassLiteralAccess; import net.sourceforge.phpdt.internal.compiler.ast.Clinit; import net.sourceforge.phpdt.internal.compiler.ast.CompilationUnitDeclaration; import net.sourceforge.phpdt.internal.compiler.ast.CompoundAssignment; import net.sourceforge.phpdt.internal.compiler.ast.ConditionalExpression; import net.sourceforge.phpdt.internal.compiler.ast.ConstructorDeclaration; -import net.sourceforge.phpdt.internal.compiler.ast.Continue; +import net.sourceforge.phpdt.internal.compiler.ast.ContinueStatement; import net.sourceforge.phpdt.internal.compiler.ast.DefaultCase; import net.sourceforge.phpdt.internal.compiler.ast.DoStatement; import net.sourceforge.phpdt.internal.compiler.ast.DoubleLiteral; @@ -74,7 +72,6 @@ import net.sourceforge.phpdt.internal.compiler.ast.SingleTypeReference; import net.sourceforge.phpdt.internal.compiler.ast.StringLiteral; import net.sourceforge.phpdt.internal.compiler.ast.SuperReference; import net.sourceforge.phpdt.internal.compiler.ast.SwitchStatement; -import net.sourceforge.phpdt.internal.compiler.ast.SynchronizedStatement; import net.sourceforge.phpdt.internal.compiler.ast.ThisReference; import net.sourceforge.phpdt.internal.compiler.ast.ThrowStatement; import net.sourceforge.phpdt.internal.compiler.ast.TrueLiteral; @@ -87,6 +84,7 @@ import net.sourceforge.phpdt.internal.compiler.lookup.ClassScope; import net.sourceforge.phpdt.internal.compiler.lookup.CompilationUnitScope; import net.sourceforge.phpdt.internal.compiler.lookup.MethodScope; + /** * An adapter class for interating through the parse tree. */ @@ -134,16 +132,12 @@ public class AbstractSyntaxTreeVisitorAdapter implements IAbstractSyntaxTreeVisi } public void endVisit(Block block, BlockScope scope) { } - public void endVisit(Break breakStatement, BlockScope scope) { + public void endVisit(BreakStatement breakStatement, BlockScope scope) { } - public void endVisit(Case caseStatement, BlockScope scope) { + public void endVisit(CaseStatement caseStatement, BlockScope scope) { } public void endVisit(CastExpression castExpression, BlockScope scope) { } - public void endVisit(CharLiteral charLiteral, BlockScope scope) { - } - public void endVisit(ClassLiteralAccess classLiteral, BlockScope scope) { - } public void endVisit(Clinit clinit, ClassScope scope) { } public void endVisit( @@ -160,7 +154,7 @@ public class AbstractSyntaxTreeVisitorAdapter implements IAbstractSyntaxTreeVisi ConstructorDeclaration constructorDeclaration, ClassScope scope) { } - public void endVisit(Continue continueStatement, BlockScope scope) { + public void endVisit(ContinueStatement continueStatement, BlockScope scope) { } public void endVisit(DefaultCase defaultCaseStatement, BlockScope scope) { } @@ -268,10 +262,7 @@ public class AbstractSyntaxTreeVisitorAdapter implements IAbstractSyntaxTreeVisi } public void endVisit(SwitchStatement switchStatement, BlockScope scope) { } - public void endVisit( - SynchronizedStatement synchronizedStatement, - BlockScope scope) { - } + public void endVisit(ThisReference thisReference, BlockScope scope) { } public void endVisit(ThrowStatement throwStatement, BlockScope scope) { @@ -343,21 +334,16 @@ public class AbstractSyntaxTreeVisitorAdapter implements IAbstractSyntaxTreeVisi public boolean visit(Block block, BlockScope scope) { return true; } - public boolean visit(Break breakStatement, BlockScope scope) { + public boolean visit(BreakStatement breakStatement, BlockScope scope) { return true; } - public boolean visit(Case caseStatement, BlockScope scope) { + public boolean visit(CaseStatement caseStatement, BlockScope scope) { return true; } public boolean visit(CastExpression castExpression, BlockScope scope) { return true; } - public boolean visit(CharLiteral charLiteral, BlockScope scope) { - return true; - } - public boolean visit(ClassLiteralAccess classLiteral, BlockScope scope) { - return true; - } + public boolean visit(Clinit clinit, ClassScope scope) { return true; } @@ -379,7 +365,7 @@ public class AbstractSyntaxTreeVisitorAdapter implements IAbstractSyntaxTreeVisi ClassScope scope) { return true; } - public boolean visit(Continue continueStatement, BlockScope scope) { + public boolean visit(ContinueStatement continueStatement, BlockScope scope) { return true; } public boolean visit(DefaultCase defaultCaseStatement, BlockScope scope) { @@ -528,11 +514,7 @@ public class AbstractSyntaxTreeVisitorAdapter implements IAbstractSyntaxTreeVisi public boolean visit(SwitchStatement switchStatement, BlockScope scope) { return true; } - public boolean visit( - SynchronizedStatement synchronizedStatement, - BlockScope scope) { - return true; - } + public boolean visit(ThisReference thisReference, BlockScope scope) { return true; }