public void Execute(Action <DaemonStageResult> committer) { var nitraFile = ReSharperSolution.XXLanguageXXSolution.GetNitraFile(_daemonProcess.SourceFile); if (nitraFile == null) { return; } var messages = nitraFile.GetCompilerMessages(); var highlightingInfos = new List <HighlightingInfo>(messages.Length); var consumer = new DefaultHighlightingConsumer(this, _settings); foreach (var message in messages) { if (_daemonProcess.InterruptFlag) { return; } var highlighting = new NitraError(message); consumer.ConsumeHighlighting(new HighlightingInfo(highlighting.DocumentRange, highlighting)); //highlightingInfos.Add(new HighlightingInfo(highlighting.DocumentRange, highlighting)); } committer(new DaemonStageResult(consumer.Highlightings)); //committer(new DaemonStageResult(highlightingInfos)); }
public void Execute(Action<DaemonStageResult> committer) { var nitraFile = ReSharperSolution.XXLanguageXXSolution.GetNitraFile(_daemonProcess.SourceFile); if (nitraFile == null) return; var messages = nitraFile.GetCompilerMessages(); var highlightingInfos = new List<HighlightingInfo>(messages.Length); var consumer = new DefaultHighlightingConsumer(this, _settings); foreach (var message in messages) { if (_daemonProcess.InterruptFlag) return; var highlighting = new NitraError(message); consumer.ConsumeHighlighting(new HighlightingInfo(highlighting.DocumentRange, highlighting)); //highlightingInfos.Add(new HighlightingInfo(highlighting.DocumentRange, highlighting)); } committer(new DaemonStageResult(consumer.Highlightings)); //committer(new DaemonStageResult(highlightingInfos)); }