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
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package net.sourceforge.phpeclipse.internal.compiler.ast;
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;
18 public class EmptyStatement extends Statement {
20 public EmptyStatement(int startPosition, int endPosition) {
21 this.sourceStart = startPosition;
22 this.sourceEnd = endPosition;
25 public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) {
29 // public void generateCode(BlockScope currentScope, CodeStream codeStream){
30 // // no bytecode, no need to check for reachability or recording source positions
32 public StringBuffer printStatement(int tab, StringBuffer output) {
33 return printIndent(tab, output).append(';');
35 public void resolve(BlockScope scope) {
38 public void traverse(IAbstractSyntaxTreeVisitor visitor, BlockScope scope) {
39 visitor.visit(this, scope);
40 visitor.endVisit(this, scope);
43 public String toString(int tab) {
44 return tabString(tab) + ";"; //$NON-NLS-1$