Package st.gravel.support.compiler.ast

Examples of st.gravel.support.compiler.ast.NamespacedVariableNode.path()


  public void testParseNamespacedVariable() {
    final NamespacedVariableNode _node;
    _node = ((NamespacedVariableNode) Parser.factory.source_(" foo.bar.baz ").parseExpression());
    assertEquals((st.gravel.support.jvm.SmalltalkFactory) NamespacedVariableNode.factory, (st.gravel.support.jvm.SmalltalkFactory) _node.factory());
    assertEquals((String) "foo.bar.baz", (String) _node.prettySourceString());
    assertEquals((String[]) new String[] { "foo", "bar", "baz" }, (String[]) _node.path());
  }

  @Test
  public void testParseNegativeInteger() {
    final IntegerLiteralNode _node;
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.