Examples of prettySourceString()


Examples of st.gravel.support.compiler.ast.Statement.prettySourceString()

  @Test
  public void testParse2ArgBlockWithTemps() {
    final Statement _node;
    _node = Parser.factory.source_("[:a :b  | | c | a foo. b bar. c foo]").parseExpression();
    assertTrue(st.gravel.support.jvm.ObjectExtensions.equals_(_node.factory(), BlockNode.factory));
    assertEquals((String) "\n[:a :b | \n| c |\na foo.\nb bar.\nc foo]", (String) _node.prettySourceString());
  }

  @Test
  public void testParseBinaryExpression() {
    final Statement _node;
View Full Code Here

Examples of st.gravel.support.compiler.ast.Statement.prettySourceString()

  @Test
  public void testParseBinaryExpression() {
    final Statement _node;
    _node = Parser.factory.source_(" 3 + 7 ").parseExpression();
    assertTrue(st.gravel.support.jvm.ObjectExtensions.equals_(_node.factory(), BinaryMessageNode.factory));
    assertEquals((String) "3 + 7", (String) _node.prettySourceString());
  }

  @Test
  public void testParseBinaryMethod() {
    final BinaryMethodNode _node;
View Full Code Here

Examples of st.gravel.support.compiler.ast.Statement.prettySourceString()

  @Test
  public void testParseBinaryUnaryExpression() {
    final Statement _node;
    _node = Parser.factory.source_(" 3 bar + 2 + 1 foo").parseExpression();
    assertTrue(st.gravel.support.jvm.ObjectExtensions.equals_(_node.factory(), BinaryMessageNode.factory));
    assertEquals((String) "3 bar + 2 + 1 foo", (String) _node.prettySourceString());
  }

  @Test
  public void testParseByteArray() {
    final ByteArrayLiteralNode _node;
View Full Code Here

Examples of st.gravel.support.compiler.ast.Statement.prettySourceString()

  @Test
  public void testParseCascade() {
    final Statement _node;
    _node = Parser.factory.source_("3 foo + 2\n\t\t+ 3;\n\t\tbar: 2;\n\t\tbaz: 3;\n\t\tbaz: 4;\n\t\tboo").parseExpression();
    assertEquals((st.gravel.support.jvm.SmalltalkFactory) CascadeNode.factory, (st.gravel.support.jvm.SmalltalkFactory) _node.factory());
    assertEquals((String) "(3 foo + 2) + 3; bar: 2; baz: 3; baz: 4; boo", (String) _node.prettySourceString());
  }

  @Test
  public void testParseChar() {
    final CharacterLiteralNode _node;
View Full Code Here

Examples of st.gravel.support.compiler.ast.Statement.prettySourceString()

  @Test
  public void testParseEmptyBlock() {
    final Statement _node;
    _node = Parser.factory.source_("[]").parseExpression();
    assertTrue(st.gravel.support.jvm.ObjectExtensions.equals_(_node.factory(), BlockNode.factory));
    assertEquals((String) "[]", (String) _node.prettySourceString());
  }

  @Test
  public void testParseFixedPoint() {
    final FixedPointLiteralNode _node;
View Full Code Here

Examples of st.gravel.support.compiler.ast.Statement.prettySourceString()

  @Test
  public void testParseKeywordBinaryUnaryExpression1() {
    final Statement _node;
    _node = Parser.factory.source_("2 bar + 7 foo: 7 bar: 4 baz foo: 2 + 1 boo: 3 foo + 2 roo: 3 + 2 foo noo: 3 hoo + 2 joo").parseExpression();
    assertTrue(st.gravel.support.jvm.ObjectExtensions.equals_(_node.factory(), KeywordMessageNode.factory));
    assertEquals((String) "2 bar + 7\n\tfoo: 7\n\tbar: 4 baz\n\tfoo: 2 + 1\n\tboo: 3 foo + 2\n\troo: 3 + 2 foo\n\tnoo: 3 hoo + 2 joo", (String) _node.prettySourceString());
  }

  @Test
  public void testParseKeywordBinaryUnaryExpression2() {
    final Statement _node;
View Full Code Here

Examples of st.gravel.support.compiler.ast.Statement.prettySourceString()

  @Test
  public void testParseKeywordBinaryUnaryExpression2() {
    final Statement _node;
    _node = Parser.factory.source_("2 bar foo: 7 bar: 4 baz foo: 2 + 1 boo: 3 foo + 2 roo: 3 + 2 foo noo: 3 hoo + 2 joo").parseExpression();
    assertTrue(st.gravel.support.jvm.ObjectExtensions.equals_(_node.factory(), KeywordMessageNode.factory));
    assertEquals((String) "2 bar\n\tfoo: 7\n\tbar: 4 baz\n\tfoo: 2 + 1\n\tboo: 3 foo + 2\n\troo: 3 + 2 foo\n\tnoo: 3 hoo + 2 joo", (String) _node.prettySourceString());
  }

  @Test
  public void testParseKeywordBinaryUnaryExpression3() {
    final Statement _node;
View Full Code Here

Examples of st.gravel.support.compiler.ast.Statement.prettySourceString()

  @Test
  public void testParseKeywordBinaryUnaryExpression3() {
    final Statement _node;
    _node = Parser.factory.source_("2 + 7 foo: 7 bar: 4 baz foo: 2 + 1 boo: 3 foo + 2 roo: 3 + 2 foo noo: 3 hoo + 2 joo").parseExpression();
    assertTrue(st.gravel.support.jvm.ObjectExtensions.equals_(_node.factory(), KeywordMessageNode.factory));
    assertEquals((String) "2 + 7\n\tfoo: 7\n\tbar: 4 baz\n\tfoo: 2 + 1\n\tboo: 3 foo + 2\n\troo: 3 + 2 foo\n\tnoo: 3 hoo + 2 joo", (String) _node.prettySourceString());
  }

  @Test
  public void testParseKeywordBinaryUnaryExpression4() {
    final Statement _node;
View Full Code Here

Examples of st.gravel.support.compiler.ast.Statement.prettySourceString()

  @Test
  public void testParseKeywordBinaryUnaryExpression4() {
    final Statement _node;
    _node = Parser.factory.source_("2 + 7 bar foo: 7 bar: 4 baz foo: 2 + 1 boo: 3 foo + 2 roo: 3 + 2 foo noo: 3 hoo + 2 joo").parseExpression();
    assertTrue(st.gravel.support.jvm.ObjectExtensions.equals_(_node.factory(), KeywordMessageNode.factory));
    assertEquals((String) "2 + 7 bar\n\tfoo: 7\n\tbar: 4 baz\n\tfoo: 2 + 1\n\tboo: 3 foo + 2\n\troo: 3 + 2 foo\n\tnoo: 3 hoo + 2 joo", (String) _node.prettySourceString());
  }

  @Test
  public void testParseKeywordExpression() {
    final Statement _node;
View Full Code Here

Examples of st.gravel.support.compiler.ast.Statement.prettySourceString()

  @Test
  public void testParseKeywordExpression() {
    final Statement _node;
    _node = Parser.factory.source_(" 3 foo: 7 bar: 4 ").parseExpression();
    assertEquals((st.gravel.support.jvm.SmalltalkFactory) KeywordMessageNode.factory, (st.gravel.support.jvm.SmalltalkFactory) _node.factory());
    assertEquals((String) "3 foo: 7 bar: 4", (String) _node.prettySourceString());
  }

  @Test
  public void testParseKeywordMethod1() {
    final KeywordMethodNode _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.