flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mschma...@apache.org
Subject svn commit: r1453325 - in /flex/falcon/trunk/compiler/src/org/apache/flex/compiler: internal/tree/as/LabeledStatementNode.java tree/as/ILabeledStatementNode.java
Date Wed, 06 Mar 2013 13:24:16 GMT
Author: mschmalle
Date: Wed Mar  6 13:24:16 2013
New Revision: 1453325

URL: http://svn.apache.org/r1453325
Log:
Flex:Falcon
- Added ILabeledStatementNode API

Added:
    flex/falcon/trunk/compiler/src/org/apache/flex/compiler/tree/as/ILabeledStatementNode.java
  (with props)
Modified:
    flex/falcon/trunk/compiler/src/org/apache/flex/compiler/internal/tree/as/LabeledStatementNode.java

Modified: flex/falcon/trunk/compiler/src/org/apache/flex/compiler/internal/tree/as/LabeledStatementNode.java
URL: http://svn.apache.org/viewvc/flex/falcon/trunk/compiler/src/org/apache/flex/compiler/internal/tree/as/LabeledStatementNode.java?rev=1453325&r1=1453324&r2=1453325&view=diff
==============================================================================
--- flex/falcon/trunk/compiler/src/org/apache/flex/compiler/internal/tree/as/LabeledStatementNode.java
(original)
+++ flex/falcon/trunk/compiler/src/org/apache/flex/compiler/internal/tree/as/LabeledStatementNode.java
Wed Mar  6 13:24:16 2013
@@ -21,14 +21,14 @@ package org.apache.flex.compiler.interna
 
 import org.apache.flex.compiler.tree.ASTNodeID;
 import org.apache.flex.compiler.tree.as.IASNode;
+import org.apache.flex.compiler.tree.as.ILabeledStatementNode;
 
 /**
  * A LabeledStatementNode contains an ActionScript label and its associated
  * statements, and provides a specific node type to facilitate recognition in
  * the syntax tree.
  */
-// TODO Add interface for this class.
-public class LabeledStatementNode extends FixedChildrenNode
+public class LabeledStatementNode extends FixedChildrenNode implements ILabeledStatementNode
 {
     /**
      * Constructor.
@@ -80,19 +80,13 @@ public class LabeledStatementNode extend
     // Other methods
     //
 
-    /**
-     * @return The name of the label in this labeled statement node.
-     */
-    // TODO Add to interface.
+    @Override
     public String getLabel()
     {
         return labelIdentifierNode.getName();
     }
 
-    /**
-     * @return The tree node for the statement this labeled statement labels.
-     */
-    // TODO Add to interfaced.
+    @Override
     public BlockNode getLabeledStatement()
     {
         return labeledStatement;

Added: flex/falcon/trunk/compiler/src/org/apache/flex/compiler/tree/as/ILabeledStatementNode.java
URL: http://svn.apache.org/viewvc/flex/falcon/trunk/compiler/src/org/apache/flex/compiler/tree/as/ILabeledStatementNode.java?rev=1453325&view=auto
==============================================================================
--- flex/falcon/trunk/compiler/src/org/apache/flex/compiler/tree/as/ILabeledStatementNode.java
(added)
+++ flex/falcon/trunk/compiler/src/org/apache/flex/compiler/tree/as/ILabeledStatementNode.java
Wed Mar  6 13:24:16 2013
@@ -0,0 +1,38 @@
+/*
+ *
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *
+ */
+
+package org.apache.flex.compiler.tree.as;
+
+import org.apache.flex.compiler.internal.tree.as.BlockNode;
+
+/**
+ * An AST node representing the label block ("foo:{}").
+ */
+public interface ILabeledStatementNode extends IASNode
+{
+    /**
+     * @return The name of the label in this labeled statement node.
+     */
+    String getLabel();
+
+    /**
+     * @return The tree node for the statement this labeled statement labels.
+     */
+    BlockNode getLabeledStatement();
+}

Propchange: flex/falcon/trunk/compiler/src/org/apache/flex/compiler/tree/as/ILabeledStatementNode.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message