Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Unified Diff: pkg/analysis_server/lib/src/domain_analysis.dart

Issue 2815643004: Temp fix to allow plugins to serve the getErrors APIs. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/lib/src/analysis_server.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/domain_analysis.dart
diff --git a/pkg/analysis_server/lib/src/domain_analysis.dart b/pkg/analysis_server/lib/src/domain_analysis.dart
index c8f2ec280c939c6962990adb4a84aecdc0aaf023..894f30996fce3a8fd3effd5066eeb6912b317a63 100644
--- a/pkg/analysis_server/lib/src/domain_analysis.dart
+++ b/pkg/analysis_server/lib/src/domain_analysis.dart
@@ -67,6 +67,16 @@ class AnalysisDomainHandler implements RequestHandler {
if (server.options.enableNewAnalysisDriver) {
var result = await server.getAnalysisResult(file);
+
+ if (server.onResultErrorSupplementor != null) {
+ if (result != null) {
+ await server.onResultErrorSupplementor(file, result.errors);
+ } else {
+ server.onNoAnalysisResult(file, send);
+ return;
+ }
+ }
+
send(result?.driver?.analysisOptions, result?.lineInfo, result?.errors);
return;
}
« no previous file with comments | « pkg/analysis_server/lib/src/analysis_server.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698