Refactored packagename to net.sourceforge.phpdt.internal.compiler.ast
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / flow / LabelFlowContext.java
index 5d87f1c..47ca611 100644 (file)
@@ -1,38 +1,42 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2001, 2002 International Business Machines Corp. and others.
+ * Copyright (c) 2000, 2003 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v0.5 
+ * are made available under the terms of the Common Public License v1.0
  * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v05.html
+ * http://www.eclipse.org/legal/cpl-v10.html
  * 
  * Contributors:
  *     IBM Corporation - initial API and implementation
- ******************************************************************************/
+ *******************************************************************************/
 package net.sourceforge.phpdt.internal.compiler.flow;
 
-import net.sourceforge.phpdt.internal.compiler.ast.AstNode;
+import net.sourceforge.phpdt.core.compiler.CharOperation;
+import net.sourceforge.phpdt.internal.compiler.ast.ASTNode;
 import net.sourceforge.phpdt.internal.compiler.codegen.Label;
 import net.sourceforge.phpdt.internal.compiler.lookup.BlockScope;
-import net.sourceforge.phpdt.internal.compiler.util.CharOperation;
 
 /**
  * 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,
+               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) {
@@ -46,10 +50,12 @@ public class LabelFlowContext extends SwitchFlowContext {
        }
 
        public String individualToString() {
+
                return "Label flow context [label:" + String.valueOf(labelName) + "]"; //$NON-NLS-2$ //$NON-NLS-1$
        }
 
        public char[] labelName() {
+
                return labelName;
        }
-}
\ No newline at end of file
+}