Updated build.properties, build.xml for release build
[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         
33         public void resolve(BlockScope scope) {
34         }
35         
36         public void traverse(IAbstractSyntaxTreeVisitor visitor, BlockScope scope) {
37                 visitor.visit(this, scope);
38                 visitor.endVisit(this, scope);
39         }
40         
41         public String toString(int tab) {
42                 return tabString(tab) + ";"; //$NON-NLS-1$ 
43         }
44 }
45