Package st.gravel.support.compiler.ast

Examples of st.gravel.support.compiler.ast.KeywordMethodNode


    assertEquals((String) "3 foo: 7 bar: 4", (String) _node.prettySourceString());
  }

  @Test
  public void testParseKeywordMethod1() {
    final KeywordMethodNode _node;
    _node = ((KeywordMethodNode) Parser.factory.parseMethod_("foo: arg1 ^bar"));
    assertTrue(st.gravel.support.jvm.ObjectExtensions.equals_(_node.factory(), KeywordMethodNode.factory));
    assertEquals((String) "foo: arg1\n\t^bar", (String) _node.prettySourceString());
  }
View Full Code Here


    assertEquals((String) "foo: arg1\n\t^bar", (String) _node.prettySourceString());
  }

  @Test
  public void testParseKeywordMethod2() {
    final KeywordMethodNode _node;
    _node = ((KeywordMethodNode) Parser.factory.parseMethod_("foo: arg1 bar: arg2 ^bar"));
    assertTrue(st.gravel.support.jvm.ObjectExtensions.equals_(_node.factory(), KeywordMethodNode.factory));
    assertEquals((String) "foo: arg1 bar: arg2\n\t^bar", (String) _node.prettySourceString());
  }
View Full Code Here

TOP

Related Classes of st.gravel.support.compiler.ast.KeywordMethodNode

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.