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

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


{
    @Override
    @Test
    public void testArgumentError()
    {
        IVariableNode node = getVariable("var a:ArgumentError = new ArgumentError();");
        asBlockWalker.visitVariable(node);
        assertOut("var /** @type {ArgumentError} */ a = new ArgumentError()");
    }
View Full Code Here


    @Override
    @Test
    public void testArray()
    {
        IVariableNode node = getVariable("var a:Array = new Array(1);");
        asBlockWalker.visitVariable(node);
        assertOut("var /** @type {Array} */ a = new Array(1)");
    }
View Full Code Here

    @Override
    @Test
    public void testBoolean()
    {
        IVariableNode node = getVariable("var a:Boolean = new Boolean(1);");
        asBlockWalker.visitVariable(node);
        assertOut("var /** @type {boolean} */ a = new Boolean(1)");
    }
View Full Code Here

    @Override
    @Test
    public void testClass()
    {
        IVariableNode node = getVariable("var a:Class = new Class();");
        asBlockWalker.visitVariable(node);
        assertOut("var /** @type {Object} */ a = new Class()");
    }
View Full Code Here

    @Override
    @Test
    public void testDate()
    {
        IVariableNode node = getVariable("var a:Date = new Date();");
        asBlockWalker.visitVariable(node);
        assertOut("var /** @type {Date} */ a = new Date()");
    }
View Full Code Here

    @Override
    @Test
    public void testDefinitionError()
    {
        IVariableNode node = getVariable("var a:DefinitionError = new DefinitionError();");
        asBlockWalker.visitVariable(node);
        assertOut("var /** @type {DefinitionError} */ a = new DefinitionError()");
    }
View Full Code Here

    @Override
    @Test
    public void testError()
    {
        IVariableNode node = getVariable("var a:Error = new Error();");
        asBlockWalker.visitVariable(node);
        assertOut("var /** @type {Error} */ a = new Error()");
    }
View Full Code Here

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

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

    @Override
    @Test
    public void testInt()
    {
        IVariableNode node = getVariable("var a:int = new int(1.8);");
        asBlockWalker.visitVariable(node);
        assertOut("var /** @type {number} */ a = new int(1.8)");
    }
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.