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
9 * IBM Corporation - initial API and implementation
10 ******************************************************************************/
11 package net.sourceforge.phpdt.internal.compiler.ast;
13 import net.sourceforge.phpdt.internal.compiler.lookup.BlockScope;
14 import net.sourceforge.phpdt.internal.compiler.codegen.CodeStream;
15 import net.sourceforge.phpdt.internal.compiler.IAbstractSyntaxTreeVisitor;
17 public class EmptyStatement extends Statement {
19 public EmptyStatement(int startPosition, int endPosition) {
20 this.sourceStart = startPosition;
21 this.sourceEnd = endPosition;
24 public void generateCode(BlockScope currentScope, CodeStream codeStream){
25 // no bytecode, no need to check for reachability or recording source positions
28 public void traverse(IAbstractSyntaxTreeVisitor visitor, BlockScope scope) {
29 visitor.visit(this, scope);
30 visitor.endVisit(this, scope);
33 public String toString(int tab) {
34 return tabString(tab) + ";"; //$NON-NLS-1$