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

Examples of org.apache.flex.compiler.internal.tree.as.LabeledStatementNode


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

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


    @Test
    public void testVisitLabel_1a()
    {
        // TODO LabelStatement messes up in finally{} block, something is wrong there
        LabeledStatementNode node = (LabeledStatementNode) getNode(
                "foo: for each(var i:int in obj) break foo;",
                LabeledStatementNode.class);
        visitor.visitLabeledStatement(node);
        assertOut("foo : for each (var i:int in obj)\n\tbreak foo;");
    }
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.internal.tree.as.LabeledStatementNode

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.