deleted: export="true"
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / EmptyStatement.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2001, 2002 International Business Machines Corp. and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v0.5 
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v05.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.codegen.CodeStream;
15 import net.sourceforge.phpdt.internal.compiler.lookup.BlockScope;
16
17 public class EmptyStatement extends Statement {
18
19         public EmptyStatement(int startPosition, int endPosition) {
20                 this.sourceStart = startPosition;
21                 this.sourceEnd = endPosition;
22         }
23
24         public void generateCode(BlockScope currentScope, CodeStream codeStream){
25                 // no bytecode, no need to check for reachability or recording source positions
26         }
27         
28         public void traverse(IAbstractSyntaxTreeVisitor visitor, BlockScope scope) {
29                 visitor.visit(this, scope);
30                 visitor.endVisit(this, scope);
31         }
32         
33         public String toString(int tab) {
34                 return tabString(tab) + ";"; //$NON-NLS-1$ 
35         }
36 }
37
38