use of org.metaborg.spoofax.core.unit.AnalyzeContrib in project spoofax by metaborg.
the class StrategoAnalyzer method result.
private ISpoofaxAnalyzeUnit result(String error, ISpoofaxParseUnit input, IContext context, Throwable e, long duration) {
final FileObject source = input.source();
final IMessage message = MessageFactory.newAnalysisErrorAtTop(source, error, e);
return unitService.analyzeUnit(input, new AnalyzeContrib(false, false, true, null, Iterables2.singleton(message), duration), context);
}
Aggregations