Examples of IVariableNode


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

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

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

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

    @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

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

    @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

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

    @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

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

    @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

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

    @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

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

    @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

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

    @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

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

    @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
TOP
Copyright © 2018 www.massapi.com. 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.