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

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


    }

    @Test
    public void testEvalError()
    {
        IVariableNode node = getVariable("var a:EvalError = new EvalError();");
        asBlockWalker.visitVariable(node);
        assertOut("var a:EvalError = new EvalError()");
    }
View Full Code Here


    }

    @Test
    public void testFunction()
    {
        IVariableNode node = getVariable("var a:Function = new Function();");
        asBlockWalker.visitVariable(node);
        assertOut("var a:Function = new Function()");
    }
View Full Code Here

    }

    @Test
    public void testInt()
    {
        IVariableNode node = getVariable("var a:int = new int(1.8);");
        asBlockWalker.visitVariable(node);
        assertOut("var a:int = new int(1.8)");
    }
View Full Code Here

    }

    @Test
    public void testJSON()
    {
        IVariableNode node = getVariable("var a:JSON = new JSON();");
        asBlockWalker.visitVariable(node);
        assertOut("var a:JSON = new JSON()");
    }
View Full Code Here

    }

    @Test
    public void testMath()
    {
        IVariableNode node = getVariable("var a:Number = Math.PI;");
        asBlockWalker.visitVariable(node);
        assertOut("var a:Number = Math.PI");
    }
View Full Code Here

    }

    @Test
    public void testNamespace()
    {
        IVariableNode node = getVariable("var a:Namespace = new Namespace(\"http://example.com\");");
        asBlockWalker.visitVariable(node);
        assertOut("var a:Namespace = new Namespace(\"http://example.com\")");
    }
View Full Code Here

    }

    @Test
    public void testNumber()
    {
        IVariableNode node = getVariable("var a:Number = new Number(\"1\");");
        asBlockWalker.visitVariable(node);
        assertOut("var a:Number = new Number(\"1\")");
    }
View Full Code Here

    }

    @Test
    public void testObject()
    {
        IVariableNode node = getVariable("var a:Object = new Object();");
        asBlockWalker.visitVariable(node);
        assertOut("var a:Object = new Object()");
    }
View Full Code Here

    @Override
    @Test
    public void testField()
    {
        IVariableNode node = getField("var foo;");
        asBlockWalker.visitVariable(node);
        assertOut("/**\n * @type {*}\n */\nFalconTest_A.prototype.foo");
    }
View Full Code Here

    @Override
    @Test
    public void testField_withType()
    {
        IVariableNode node = getField("var foo:int;");
        asBlockWalker.visitVariable(node);
        assertOut("/**\n * @type {number}\n */\nFalconTest_A.prototype.foo");
    }
View Full Code Here

TOP

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

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.