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

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

Issue 845553005: Change code completion relevance from CompletionRelevance.LOW/DEFAULT/HIGH to int (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 d86f61dfb1602d5425f701677bd0334def74632b..6e6e815c7bf625c9e4d41750d8da63647505086f 100644
--- a/pkg/analysis_server/test/integration/protocol_matchers.dart
+++ b/pkg/analysis_server/test/integration/protocol_matchers.dart
@@ -1058,26 +1058,11 @@ final Matcher isChangeContentOverlay = new LazyMatcher(() => new MatchesJsonObje
final Matcher isCompletionId = isString;
/**
- * CompletionRelevance
- *
- * enum {
- * LOW
- * DEFAULT
- * HIGH
- * }
- */
-final Matcher isCompletionRelevance = new MatchesEnum("CompletionRelevance", [
- "LOW",
- "DEFAULT",
- "HIGH"
-]);
-
-/**
* CompletionSuggestion
*
* {
* "kind": CompletionSuggestionKind
- * "relevance": CompletionRelevance
+ * "relevance": int
* "completion": String
* "selectionOffset": int
* "selectionLength": int
@@ -1099,7 +1084,7 @@ final Matcher isCompletionRelevance = new MatchesEnum("CompletionRelevance", [
final Matcher isCompletionSuggestion = new LazyMatcher(() => new MatchesJsonObject(
"CompletionSuggestion", {
"kind": isCompletionSuggestionKind,
- "relevance": isCompletionRelevance,
+ "relevance": isInt,
"completion": isString,
"selectionOffset": isInt,
"selectionLength": isInt,

Powered by Google App Engine
This is Rietveld 408576698