use of org.eclipse.xtext.xtext.ecoreInference.TransformationDiagnosticsProducer in project xtext-core by eclipse.
the class XtextLinker method createTransformer.
protected Xtext2EcoreTransformer createTransformer(Grammar grammar, IDiagnosticConsumer consumer) {
final Xtext2EcoreTransformer transformer = new Xtext2EcoreTransformer(grammar);
transformer.setErrorAcceptor(new TransformationDiagnosticsProducer(consumer));
transformer.setPostProcessor(postProcessor);
return transformer;
}
Aggregations