Made all bundles require a Java 1.4 EE, and backported some classescode to Java 1.4
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / EmptyStatement.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2003 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package net.sourceforge.phpdt.internal.compiler.ast;
12
13 import net.sourceforge.phpdt.internal.compiler.IAbstractSyntaxTreeVisitor;
14 import net.sourceforge.phpdt.internal.compiler.flow.FlowContext;
15 import net.sourceforge.phpdt.internal.compiler.flow.FlowInfo;
16 import net.sourceforge.phpdt.internal.compiler.lookup.BlockScope;
17
18 public class EmptyStatement extends Statement {
19
20         public EmptyStatement(int startPosition, int endPosition) {
21                 this.sourceStart = startPosition;
22                 this.sourceEnd = endPosition;
23         }
24
25         public FlowInfo analyseCode(BlockScope currentScope,
26                         FlowContext flowContext, FlowInfo flowInfo) {
27                 return flowInfo;
28         }
29
30         // public void generateCode(BlockScope currentScope, CodeStream codeStream){
31         // // no bytecode, no need to check for reachability or recording source
32         // positions
33         // }
34         public StringBuffer printStatement(int tab, StringBuffer output) {
35                 return printIndent(tab, output).append(';');
36         }
37
38         public void resolve(BlockScope scope) {
39         }
40
41         public void traverse(IAbstractSyntaxTreeVisitor visitor, BlockScope scope) {
42                 visitor.visit(this, scope);
43                 visitor.endVisit(this, scope);
44         }
45
46         public String toString(int tab) {
47                 return tabString(tab) + ";"; //$NON-NLS-1$ 
48         }
49 }