Examples of skipCodeGeneration()


Examples of org.apache.flex.compiler.tree.mxml.IMXMLDesignLayerNode.skipCodeGeneration()

                final IASNode child = node.getChild(i);
                if (child instanceof IMXMLDesignLayerNode)
                {
                    // Call temp.addLayer(child) if there's a DesignLayer node in the direct children.
                    final IMXMLDesignLayerNode designLayerChildNode = (IMXMLDesignLayerNode)child;
                    if (!designLayerChildNode.skipCodeGeneration())
                        callAddLayer(node, context, designLayerChildNode);
                }
                else if (child instanceof IMXMLInstanceNode)
                {
                    // Set directInstanceChild.designLayer = designLayer.
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLDesignLayerNode.skipCodeGeneration()

      "<fx:DesignLayer/>"
    };
    IMXMLDesignLayerNode node = getMXMLDesignLayerNode(code);
    assertThat("getChildCount", node.getChildCount(), is(0));
    assertThat("getHoistedChildCount", node.getHoistedChildCount(), is(0));
    assertThat("skipCodeGeneration", node.skipCodeGeneration(), is(true));
  }
 
  @Test
  public void MXMLDesignLayerNode_empty2()
  {
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLDesignLayerNode.skipCodeGeneration()

      "<fx:DesignLayer></fx:DesignLayer>"
    };
    IMXMLDesignLayerNode node = getMXMLDesignLayerNode(code);
    assertThat("getChildCount", node.getChildCount(), is(0));
    assertThat("getHoistedChildCount", node.getHoistedChildCount(), is(0));
    assertThat("skipCodeGeneration", node.skipCodeGeneration(), is(true));
  }
 
  @Test
  public void MXMLDesignLayerNode_empty3()
  {
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLDesignLayerNode.skipCodeGeneration()

      "<fx:DesignLayer> \t\r\n</fx:DesignLayer>"
    };
    IMXMLDesignLayerNode node = getMXMLDesignLayerNode(code);
    assertThat("getChildCount", node.getChildCount(), is(0));
    assertThat("getHoistedChildCount", node.getHoistedChildCount(), is(0));
    assertThat("skipCodeGeneration", node.skipCodeGeneration(), is(true));
  }
 
  @Test
  public void MXMLDesignLayerNode_id_visible_alpha()
  {
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLDesignLayerNode.skipCodeGeneration()

      "<fx:DesignLayer id=' dl1 ' visible=' false ' alpha=' 0.5 '/>"
    };
    IMXMLDesignLayerNode node = getMXMLDesignLayerNode(code);
    assertThat("getChildCount", node.getChildCount(), is(2)); // visible and alpha property nodes
    assertThat("getHoistedChildCount", node.getHoistedChildCount(), is(0));
    assertThat("skipCodeGeneration", node.skipCodeGeneration(), is(false));
    assertThat("getID", node.getID(), is("dl1"));
    assertThat("getChild(0).getName()", ((IMXMLPropertySpecifierNode)node.getChild(0)).getName(), is("visible"));
    assertThat("getChild(0).getName()", ((IMXMLPropertySpecifierNode)node.getChild(1)).getName(), is("alpha"));
  }
 
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLDesignLayerNode.skipCodeGeneration()

      "</fx:DesignLayer>"
    };
    IMXMLDesignLayerNode node = getMXMLDesignLayerNode(code);
    assertThat("getChildCount", node.getChildCount(), is(2));
    assertThat("getHoistedChildCount", node.getHoistedChildCount(), is(2));
    assertThat("skipCodeGeneration", node.skipCodeGeneration(), is(true));
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.