Index: pkg/analysis_server/lib/src/protocol_server.dart |
diff --git a/pkg/analysis_server/lib/src/protocol_server.dart b/pkg/analysis_server/lib/src/protocol_server.dart |
index a9dd5dd9051d59bacb05d5d3339634c1cad7acd4..705b7aae74bd1306249860aa98da01f91fd1d932 100644 |
--- a/pkg/analysis_server/lib/src/protocol_server.dart |
+++ b/pkg/analysis_server/lib/src/protocol_server.dart |
@@ -5,6 +5,7 @@ |
library protocol.server; |
import 'package:analysis_server/src/protocol.dart'; |
+import 'package:analysis_server/src/services/correction/fix.dart'; |
import 'package:analysis_server/src/services/search/search_engine.dart' |
as engine; |
import 'package:analyzer/src/generated/ast.dart' as engine; |
@@ -92,8 +93,9 @@ AnalysisError newAnalysisError_fromEngine( |
var type = new AnalysisErrorType(errorCode.type.name); |
String message = error.message; |
String correction = error.correction; |
+ bool fix = hasFix(error.errorCode); |
return new AnalysisError(severity, type, location, message, |
- correction: correction); |
+ correction: correction, hasFix: fix); |
} |
/** |