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

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


    @Override
    @Test
    public void testGetAccessor_withStatic()
    {
        IGetterNode node = (IGetterNode) getAccessor("public static function get foo():int{return -1;}");
        asBlockWalker.visitGetter(node);
        assertOut("Object.defineProperty(\n\tFalconTest_A, \n\t'foo', \n\t{get:function() {\n\t\treturn -1;\n\t}, configurable:true}\n)");
    }
View Full Code Here


                return -1;
            }, configurable:true}
        )
         */
      // TODO (erikdebruin) add 'goog' type declaration
        IGetterNode node = (IGetterNode) getAccessor("function get foo():int{return -1;}");
        visitor.visitGetter(node);
        assertOut("Object.defineProperty(\n\tA.prototype, \n\t'foo', "
                + "\n\t{get:function() {\n\t\treturn -1;\n\t}, configurable:true}\n)");
    }
View Full Code Here

    @Override
    @Test
    public void testGetAccessor_withNamespace()
    {
        IGetterNode node = (IGetterNode) getAccessor("public function get foo():int{return -1;}");
        visitor.visitGetter(node);
        assertOut("Object.defineProperty(\n\tA.prototype, \n\t'foo', "
                + "\n\t{get:function() {\n\t\treturn -1;\n\t}, configurable:true}\n)");
    }
View Full Code Here

TOP

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

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.