use of org.eclipse.xtend.core.richstring.RichStringProcessor in project xtext-xtend by eclipse.
the class RichStringEvaluationTest method assertOutput.
@Override
public void assertOutput(String expectedOutput, String richString) throws Exception {
RichString parsedString = richString(richString);
StringBuilderBasedAcceptor acceptor = new StringBuilderBasedAcceptor();
DefaultIndentationHandler handler = new DefaultIndentationHandler();
RichStringProcessor processor = new RichStringProcessor();
processor.process(parsedString, acceptor, handler);
String actualOutput = acceptor.toString();
assertEquals(richString, expectedOutput, actualOutput);
}
use of org.eclipse.xtend.core.richstring.RichStringProcessor in project xtext-xtend by eclipse.
the class RichStringProcessorTest method recordRichStringProcessorEvents.
protected String recordRichStringProcessorEvents(String string) throws Exception {
RichString richString = richString(string);
RichStringProcessor processor = new RichStringProcessor();
RecordingRichStringPartAcceptor acceptor = new RecordingRichStringPartAcceptor();
processor.process(richString, acceptor, new DefaultIndentationHandler());
return acceptor.toString();
}
use of org.eclipse.xtend.core.richstring.RichStringProcessor in project xtext-xtend by eclipse.
the class RichStringProcessorTest method doTestStackIsConsistent.
protected void doTestStackIsConsistent(RichString richString, IRichStringPartAcceptor acceptor) {
StackChecker stackChecker = new StackChecker();
RichStringProcessor processor = new RichStringProcessor();
processor.process(richString, acceptor, stackChecker);
stackChecker.done(acceptor);
}
Aggregations