X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/flow/LabelFlowContext.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/flow/LabelFlowContext.java index 47ca611..2850d36 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/flow/LabelFlowContext.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/flow/LabelFlowContext.java @@ -16,34 +16,31 @@ import net.sourceforge.phpdt.internal.compiler.codegen.Label; import net.sourceforge.phpdt.internal.compiler.lookup.BlockScope; /** - * Reflects the context of code analysis, keeping track of enclosing - * try statements, exception handlers, etc... + * Reflects the context of code analysis, keeping track of enclosing try + * statements, exception handlers, etc... */ public class LabelFlowContext extends SwitchFlowContext { - + public char[] labelName; - - public LabelFlowContext( - FlowContext parent, - ASTNode associatedNode, - char[] labelName, - Label breakLabel, - BlockScope scope) { - + + public LabelFlowContext(FlowContext parent, ASTNode associatedNode, + char[] labelName, Label breakLabel, BlockScope scope) { + super(parent, associatedNode, breakLabel); this.labelName = labelName; checkLabelValidity(scope); } void checkLabelValidity(BlockScope scope) { - + // check if label was already defined above FlowContext current = parent; while (current != null) { char[] currentLabelName; if (((currentLabelName = current.labelName()) != null) - && CharOperation.equals(currentLabelName, labelName)) { - scope.problemReporter().alreadyDefinedLabel(labelName, associatedNode); + && CharOperation.equals(currentLabelName, labelName)) { + scope.problemReporter().alreadyDefinedLabel(labelName, + associatedNode); } current = current.parent; }