Examples of IMXMLFunctionNode


Examples of org.apache.flex.compiler.tree.mxml.IMXMLFunctionNode

public class MXMLFunctionNodeTests extends MXMLExpressionNodeBaseTests
{
  private IMXMLFunctionNode getMXMLFunctionNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLFunctionNode node = (IMXMLFunctionNode)findFirstDescendantOfType(fileNode, IMXMLFunctionNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLFunctionID));
    assertThat("getName", node.getName(), is("Function"));
    return node;
  }
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLFunctionNode

  {
    String[] code = new String[]
        {
          "<fx:Function/>"
        };
    IMXMLFunctionNode node = getMXMLFunctionNode(code);
    assertThat("getValue", node.getValue(project), is((IFunctionDefinition)null));
    assertThat("getExpressionNode", node.getExpressionNode(), is((IASNode)null));
  }
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLFunctionNode

  {
    String[] code = new String[]
    {
        "<fx:Function></fx:Function>"
    };
    IMXMLFunctionNode node = getMXMLFunctionNode(code);
    assertThat("getValue", node.getValue(project), is((IFunctionDefinition)null));
    assertThat("getExpressionNode", node.getExpressionNode(), is((IASNode)null));
  }
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLFunctionNode

  {
    String[] code = new String[]
    {
        "<fx:Function> \t\r\n</fx:Function>"
    };
    IMXMLFunctionNode node = getMXMLFunctionNode(code);
    assertThat("getValue", node.getValue(project), is((IFunctionDefinition)null));
    assertThat("getExpressionNode", node.getExpressionNode(), is((IASNode)null));
  }
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLFunctionNode

  {
    String[] code = new String[]
      {
        "<fx:Function>trace</fx:Function>"
    };
    IMXMLFunctionNode node = getMXMLFunctionNode(code);
    assertThat("getValue", node.getValue(project).getQualifiedName(), is("trace"));
    testExpressionLocation(node, 13, 18);
  }
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLFunctionNode

  {
    String[] code = new String[]
    {
        "<fx:Function>flash.utils.getQualifiedClassName</fx:Function>"
    };
    IMXMLFunctionNode node = getMXMLFunctionNode(code);
    assertThat("getValue", node.getValue(project).getQualifiedName(), is("flash.utils.getQualifiedClassName"));
    testExpressionLocation(node, 13, 41);
  }
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLFunctionNode

  {
    String[] code = new String[]
    {
        "<fx:Function>{a.b}</fx:Function>"
    };
    IMXMLFunctionNode node = getMXMLFunctionNode(code);
    assertThat("databinding node", node.getExpressionNode().getNodeID(), is(ASTNodeID.MXMLDataBindingID));
    testExpressionLocation(node, 13, 18);
    assertThat("databinding node child count", node.getExpressionNode().getChildCount(), is(1));
    assertThat("identifier node", node.getExpressionNode().getChild(0).getNodeID(), is(ASTNodeID.MemberAccessExpressionID));
  }
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.