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

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


    }

    @Test
    public void testVisitIf_1b()
    {
        IIfNode node = (IIfNode) getNode("if (a) { b++; } else { c++; }",
                IIfNode.class);
        visitor.visitIf(node);
        assertOut("if (a) {\n\tb++;\n} else {\n\tc++;\n}");
    }
View Full Code Here


    }

    @Test
    public void testVisitIf_1c()
    {
        IIfNode node = (IIfNode) getNode(
                "if (a) { b++; } else if (b) { c++; } else { d++; }",
                IIfNode.class);
        visitor.visitIf(node);
        assertOut("if (a) {\n\tb++;\n} else if (b) {\n\tc++;\n} else {\n\td++;\n}");
    }
View Full Code Here

    }

    @Test
    public void testVisitIf_3()
    {
        IIfNode node = (IIfNode) getNode(
                "if (a) b++; else if (c) d++; else --e;", IIfNode.class);
        visitor.visitIf(node);
        assertOut("if (a)\n\tb++;\nelse if (c)\n\td++;\nelse\n\t--e;");
    }
View Full Code Here

TOP

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

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.