Search in sources :

Example 1 with InitialTemplateIndentationComputer

use of org.eclipse.xtend.core.richstring.InitialTemplateIndentationComputer in project xtext-xtend by eclipse.

the class InitialIndentationTest method assertInitialIndentation.

public void assertInitialIndentation(String expectedIndentation, String richString, String initial) throws Exception {
    RichString parsedString = richString(richString);
    InitialTemplateIndentationComputer computer = new InitialTemplateIndentationComputer(initial);
    String actualIndentation = computer.doSwitch(parsedString);
    assertEquals(richString, expectedIndentation, actualIndentation);
}
Also used : RichString(org.eclipse.xtend.core.xtend.RichString) InitialTemplateIndentationComputer(org.eclipse.xtend.core.richstring.InitialTemplateIndentationComputer) RichString(org.eclipse.xtend.core.xtend.RichString)

Aggregations

InitialTemplateIndentationComputer (org.eclipse.xtend.core.richstring.InitialTemplateIndentationComputer)1 RichString (org.eclipse.xtend.core.xtend.RichString)1