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.phpdt.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,
26 FlowContext flowContext, FlowInfo flowInfo) {
30 // public void generateCode(BlockScope currentScope, CodeStream codeStream){
31 // // no bytecode, no need to check for reachability or recording source
34 public StringBuffer printStatement(int tab, StringBuffer output) {
35 return printIndent(tab, output).append(';');
38 public void resolve(BlockScope scope) {
41 public void traverse(IAbstractSyntaxTreeVisitor visitor, BlockScope scope) {
42 visitor.visit(this, scope);
43 visitor.endVisit(this, scope);
46 public String toString(int tab) {
47 return tabString(tab) + ";"; //$NON-NLS-1$