Examples of XtextResource


Examples of org.eclipse.xtext.resource.XtextResource

  @Test
  public void test_CommentShouldNotBeMovedToNextLine() throws Exception {
    // issue caused linebreaks between comment and statement to be removed
    String code = "$a = 10 # comment\n";
    XtextResource r = getResourceFromString(code);
    String s = serializeFormatted(r.getContents().get(0));
    assertEquals("formatting should produce same result", code, s);

  }
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.