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

Unified Diff: pkg/analysis_server/test/integration/protocol_matchers.dart

Issue 1774913006: Add error codes to server protocol (#25958). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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
Index: pkg/analysis_server/test/integration/protocol_matchers.dart
diff --git a/pkg/analysis_server/test/integration/protocol_matchers.dart b/pkg/analysis_server/test/integration/protocol_matchers.dart
index 6266cb93ba8599fa5f4fa669394ecb1cbdb27146..487d6a7a8b5d6a5326ed4640546a48f1370576bc 100644
--- a/pkg/analysis_server/test/integration/protocol_matchers.dart
+++ b/pkg/analysis_server/test/integration/protocol_matchers.dart
@@ -1070,6 +1070,7 @@ final Matcher isAddContentOverlay = new LazyMatcher(() => new MatchesJsonObject(
* "location": Location
* "message": String
* "correction": optional String
+ * "code": String
* "hasFix": optional bool
* }
*/
@@ -1078,7 +1079,8 @@ final Matcher isAnalysisError = new LazyMatcher(() => new MatchesJsonObject(
"severity": isAnalysisErrorSeverity,
"type": isAnalysisErrorType,
"location": isLocation,
- "message": isString
+ "message": isString,
+ "code": isString
}, optionalFields: {
"correction": isString,
"hasFix": isBool

Powered by Google App Engine
This is Rietveld 408576698