Index: pkg/analysis_server/lib/src/operation/operation_analysis.dart |
diff --git a/pkg/analysis_server/lib/src/operation/operation_analysis.dart b/pkg/analysis_server/lib/src/operation/operation_analysis.dart |
index a6d039552a2230a742f136dd48339accb58849a9..66fac73cdebfa73e15a381a24b6573fec01f6a7c 100644 |
--- a/pkg/analysis_server/lib/src/operation/operation_analysis.dart |
+++ b/pkg/analysis_server/lib/src/operation/operation_analysis.dart |
@@ -151,14 +151,18 @@ void sendAnalysisNotificationAnalyzedFiles(AnalysisServer server) { |
}); |
} |
-void sendAnalysisNotificationErrors(AnalysisServer server, String file, |
- LineInfo lineInfo, List<AnalysisError> errors) { |
+void sendAnalysisNotificationErrors( |
+ AnalysisServer server, |
+ AnalysisContext context, |
+ String file, |
+ LineInfo lineInfo, |
+ List<AnalysisError> errors) { |
_sendNotification(server, () { |
if (errors == null) { |
errors = <AnalysisError>[]; |
} |
var serverErrors = |
- protocol.doAnalysisError_listFromEngine(lineInfo, errors); |
+ protocol.doAnalysisError_listFromEngine(context, lineInfo, errors); |
var params = new protocol.AnalysisErrorsParams(file, serverErrors); |
server.sendNotification(params.toNotification()); |
}); |
@@ -514,7 +518,7 @@ class _NotificationErrorsOperation extends _SingleFileOperation { |
@override |
void perform(AnalysisServer server) { |
- sendAnalysisNotificationErrors(server, file, lineInfo, errors); |
+ sendAnalysisNotificationErrors(server, context, file, lineInfo, errors); |
} |
} |