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

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


    }

    @Test
    public void testVisitSwitch_1a()
    {
        ISwitchNode node = (ISwitchNode) getNode(
                "switch(i){case 1: { break; }}", ISwitchNode.class);
        visitor.visitSwitch(node);
        // TODO case BLOCK statements are SYNTHESIZED so they will never show BRACES
        // without extra help from us
        assertOut("switch (i) {\n\tcase 1:\n\t\tbreak;\n}");
View Full Code Here


    }

    @Test
    public void testVisitSwitch_2()
    {
        ISwitchNode node = (ISwitchNode) getNode(
                "switch(i){case 1: break; default: return;}", ISwitchNode.class);
        visitor.visitSwitch(node);
        assertOut("switch (i) {\n\tcase 1:\n\t\tbreak;\n\tdefault:\n\t\treturn;\n}");
    }
View Full Code Here

TOP

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

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.