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

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


    @Override
    @Test
    public void testVisitForEach_1()
    {
      // TODO (erikdebruin) handle workaround for "for-each" loop
        IForLoopNode node = (IForLoopNode) getNode(
                "for each(var i:int in obj) { break; }", IForLoopNode.class);
        visitor.visitForLoop(node);
        assertOut("for each (var i:int in obj) {\n\tbreak;\n}");
    }
View Full Code Here


    @Ignore
    @Override
    @Test
    public void testVisitForEach_1a()
    {
        IForLoopNode node = (IForLoopNode) getNode(
                "for each(var i:int in obj)  break; ", IForLoopNode.class);
        visitor.visitForLoop(node);
        assertOut("for each (var i:int in obj)\n\tbreak;");
    }
View Full Code Here

    //----------------------------------

    @Test
    public void testVisitFor_1a()
    {
        IForLoopNode node = (IForLoopNode) getNode(
                "for (var i:int = 0; i < len; i++) { break; }",
                IForLoopNode.class);
        visitor.visitForLoop(node);
        assertOut("for (var i:int = 0; i < len; i++) {\n\tbreak;\n}");
    }
View Full Code Here

    }

    @Test
    public void testVisitFor_1b()
    {
        IForLoopNode node = (IForLoopNode) getNode(
                "for (var i:int = 0; i < len; i++) break;", IForLoopNode.class);
        visitor.visitForLoop(node);
        assertOut("for (var i:int = 0; i < len; i++)\n\tbreak;");
    }
View Full Code Here

    }

    @Test
    public void testVisitFor_2()
    {
        IForLoopNode node = (IForLoopNode) getNode("for (;;) { break; }",
                IForLoopNode.class);
        visitor.visitForLoop(node);
        assertOut("for (;;) {\n\tbreak;\n}");
    }
View Full Code Here

    }

    @Test
    public void testVisitForIn_1()
    {
        IForLoopNode node = (IForLoopNode) getNode(
                "for (var i:int in obj) { break; }", IForLoopNode.class);
        visitor.visitForLoop(node);
        assertOut("for (var i:int in obj) {\n\tbreak;\n}");
    }
View Full Code Here

    }

    @Test
    public void testVisitForIn_1a()
    {
        IForLoopNode node = (IForLoopNode) getNode(
                "for (var i:int in obj)  break; ", IForLoopNode.class);
        visitor.visitForLoop(node);
        assertOut("for (var i:int in obj)\n\tbreak;");
    }
View Full Code Here

    }

    @Test
    public void testVisitForEach_1()
    {
        IForLoopNode node = (IForLoopNode) getNode(
                "for each(var i:int in obj) { break; }", IForLoopNode.class);
        visitor.visitForLoop(node);
        assertOut("for each (var i:int in obj) {\n\tbreak;\n}");
    }
View Full Code Here

    }

    @Test
    public void testVisitForEach_1a()
    {
        IForLoopNode node = (IForLoopNode) getNode(
                "for each(var i:int in obj)  break; ", IForLoopNode.class);
        visitor.visitForLoop(node);
        assertOut("for each (var i:int in obj)\n\tbreak;");
    }
View Full Code Here

TOP

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

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.