X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/IfStatement.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/IfStatement.java index aa61a55..e1682c9 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/IfStatement.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/IfStatement.java @@ -6,16 +6,28 @@ package net.sourceforge.phpdt.internal.compiler.ast; public class IfStatement extends Statement { public Expression condition; + public Statement statement; public ElseIf[] elseifs; public Else els; + /** + * Create a new If statement + * @param condition the condition + * @param statement a statement or a block of statements + * @param elseifs the elseifs + * @param els the else (or null) + * @param sourceStart the starting position + * @param sourceEnd the ending offset + */ public IfStatement(Expression condition, + Statement statement, ElseIf[] elseifs, Else els, int sourceStart, int sourceEnd) { super(sourceStart, sourceEnd); this.condition = condition; + this.statement = statement; this.elseifs = elseifs; this.els = els; }