Removed some internal constants
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / 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.phpeclipse.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, FlowContext flowContext, FlowInfo flowInfo) {
26                 return flowInfo;
27         }
28
29 //      public void generateCode(BlockScope currentScope, CodeStream codeStream){
30 //              // no bytecode, no need to check for reachability or recording source positions
31 //      }
32         public StringBuffer printStatement(int tab, StringBuffer output) {
33                 return printIndent(tab, output).append(';');
34         }
35         public void resolve(BlockScope scope) {
36         }
37         
38         public void traverse(IAbstractSyntaxTreeVisitor visitor, BlockScope scope) {
39                 visitor.visit(this, scope);
40                 visitor.endVisit(this, scope);
41         }
42         
43         public String toString(int tab) {
44                 return tabString(tab) + ";"; //$NON-NLS-1$ 
45         }
46 }
47