use of org.eclipse.xtend.core.tests.debug.AbstractTraceRegionFSA in project xtext-xtend by eclipse.
the class LineNumberMappingTests method getTraceRegion.
public AbstractTraceRegion getTraceRegion(final CharSequence xtendCode) {
try {
final XtendClass clazz = super.clazz(xtendCode.toString());
final AbstractTraceRegionFSA fsa = new AbstractTraceRegionFSA();
this.generator.doGenerate(clazz.eResource(), fsa);
final AbstractTraceRegion result = ((ITraceRegionProvider) fsa.charSequence).getTraceRegion();
this.print(result, fsa.charSequence.toString());
return result;
} catch (Throwable _e) {
throw Exceptions.sneakyThrow(_e);
}
}
Aggregations