Examples of IVariableNode


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

    @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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    @Override
    @Test
    public void testRegExp_Literal()
    {
        IVariableNode node = getVariable("var a:RegExp = /test-\\d/i;");
        asBlockWalker.visitVariable(node);
        assertOut("var /** @type {RegExp} */ a = /test-\\d/i");
    }
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.