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

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


    @Override
    @Test
    public void testSetAccessor_withStatic()
    {
        ISetterNode node = (ISetterNode) getAccessor("public static function set foo(value:int):void{}");
        asBlockWalker.visitSetter(node);
        assertOut("Object.defineProperty(\n\tFalconTest_A, \n\t'foo', \n\t{set:function(value) {\n\t}, configurable:true}\n)");
    }
View Full Code Here


            'foo',
            {set:function(value) {
            }, configurable:true}
        )
         */
        ISetterNode node = (ISetterNode) getAccessor("function set foo(value:int):void{}");
        visitor.visitSetter(node);
        assertOut("Object.defineProperty(\n\tA.prototype, \n\t'foo', \n\t{set:function(value)"
                + " {\n\t}, configurable:true}\n)");
    }
View Full Code Here

    @Override
    @Test
    public void testSetAccessor_withNamespace()
    {
        ISetterNode node = (ISetterNode) getAccessor("public function set foo(value:int):void{}");
        visitor.visitSetter(node);
        assertOut("Object.defineProperty(\n\tA.prototype, \n\t'foo', \n\t{set:function(value)"
                + " {\n\t}, configurable:true}\n)");
    }
View Full Code Here

TOP

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

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.