Package org.apache.flex.compiler.tree.as

Examples of org.apache.flex.compiler.tree.as.IMemberAccessExpressionNode


    @Test
    public void testVisitLanguageIdentifierNode_SuperMethod_1()
    {
        // NOTE: This is here as an example that a method call to super
        // is always held within a IFunctionCallNode, here it's a plain member access
        IMemberAccessExpressionNode node = (IMemberAccessExpressionNode) getNode(
                "if (a) super.foo();", IMemberAccessExpressionNode.class);
        visitor.visitMemberAccessExpression(node);
        assertOut("super.foo");
    }
View Full Code Here


    }

    @Test
    public void testVisitLanguageIdentifierNode_This1()
    {
        IMemberAccessExpressionNode node = (IMemberAccessExpressionNode) getNode(
                "if (a) this.a;", IMemberAccessExpressionNode.class);

        visitor.visitMemberAccessExpression(node);
        assertOut("this.a");
    }
View Full Code Here

    }

    @Test
    public void testVisitLanguageIdentifierNode_This2()
    {
        IMemberAccessExpressionNode node = (IMemberAccessExpressionNode) getNode(
                "if (a) this.a;", IMemberAccessExpressionNode.class);

        visitor.visitMemberAccessExpression(node);
        assertOut("this.a");
    }
View Full Code Here

    }

    @Test
    public void testVisitMemberAccess_1()
    {
        IMemberAccessExpressionNode node = (IMemberAccessExpressionNode) getExpressionNode(
                "a.b", IMemberAccessExpressionNode.class);
        visitor.visitMemberAccessExpression(node);
        assertOut("a.b");
    }
View Full Code Here

    }

    @Test
    public void testVisitMemberAccess_2()
    {
        IMemberAccessExpressionNode node = (IMemberAccessExpressionNode) getExpressionNode(
                "a.b.c.d", IMemberAccessExpressionNode.class);
        visitor.visitMemberAccessExpression(node);
        assertOut("a.b.c.d");
    }
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.tree.as.IMemberAccessExpressionNode

Copyright © 2018 www.massapicom. 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.