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

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


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


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

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

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

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

    @Override
    @Test
    public void testVector()
    {
        IVariableNode node = getVariable("var a:Vector.<String> = new Vector.<String>(['Hello', 'World']);");
        asBlockWalker.visitVariable(node);
        assertOut("var /** @type {Vector.<string>} */ a = new Vector(['Hello', 'World'])");
    }
View Full Code Here

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

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

    @Override
    @Test
    public void testXMLList()
    {
        IVariableNode node = getVariable("var a:XMLList = new XMLList('<!-- comment -->');");
        asBlockWalker.visitVariable(node);
        assertOut("var /** @type {XMLList} */ a = new XMLList('<!-- comment -->')");
    }
View Full Code Here

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

    @Test
    public void testVarDeclaration()
    {
        IVariableNode node = (IVariableNode) getNode("var a;",
                IVariableNode.class);
        asBlockWalker.visitVariable(node);
        assertOut("var a:*");
    }
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.