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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // 4 //
5 // This file has been automatically generated. Please do not edit it manually. 5 // This file has been automatically generated. Please do not edit it manually.
6 // To regenerate the file, use the script 6 // To regenerate the file, use the script
7 // "pkg/analysis_server/tool/spec/generate_files". 7 // "pkg/analysis_server/tool/spec/generate_files".
8 8
9 /** 9 /**
10 * Matchers for data types defined in the analysis server API 10 * Matchers for data types defined in the analysis server API
(...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after
1051 })); 1051 }));
1052 1052
1053 /** 1053 /**
1054 * CompletionId 1054 * CompletionId
1055 * 1055 *
1056 * String 1056 * String
1057 */ 1057 */
1058 final Matcher isCompletionId = isString; 1058 final Matcher isCompletionId = isString;
1059 1059
1060 /** 1060 /**
1061 * CompletionRelevance
1062 *
1063 * enum {
1064 * LOW
1065 * DEFAULT
1066 * HIGH
1067 * }
1068 */
1069 final Matcher isCompletionRelevance = new MatchesEnum("CompletionRelevance", [
1070 "LOW",
1071 "DEFAULT",
1072 "HIGH"
1073 ]);
1074
1075 /**
1076 * CompletionSuggestion 1061 * CompletionSuggestion
1077 * 1062 *
1078 * { 1063 * {
1079 * "kind": CompletionSuggestionKind 1064 * "kind": CompletionSuggestionKind
1080 * "relevance": CompletionRelevance 1065 * "relevance": int
1081 * "completion": String 1066 * "completion": String
1082 * "selectionOffset": int 1067 * "selectionOffset": int
1083 * "selectionLength": int 1068 * "selectionLength": int
1084 * "isDeprecated": bool 1069 * "isDeprecated": bool
1085 * "isPotential": bool 1070 * "isPotential": bool
1086 * "docSummary": optional String 1071 * "docSummary": optional String
1087 * "docComplete": optional String 1072 * "docComplete": optional String
1088 * "declaringType": optional String 1073 * "declaringType": optional String
1089 * "element": optional Element 1074 * "element": optional Element
1090 * "returnType": optional String 1075 * "returnType": optional String
1091 * "parameterNames": optional List<String> 1076 * "parameterNames": optional List<String>
1092 * "parameterTypes": optional List<String> 1077 * "parameterTypes": optional List<String>
1093 * "requiredParameterCount": optional int 1078 * "requiredParameterCount": optional int
1094 * "hasNamedParameters": optional bool 1079 * "hasNamedParameters": optional bool
1095 * "parameterName": optional String 1080 * "parameterName": optional String
1096 * "parameterType": optional String 1081 * "parameterType": optional String
1097 * } 1082 * }
1098 */ 1083 */
1099 final Matcher isCompletionSuggestion = new LazyMatcher(() => new MatchesJsonObje ct( 1084 final Matcher isCompletionSuggestion = new LazyMatcher(() => new MatchesJsonObje ct(
1100 "CompletionSuggestion", { 1085 "CompletionSuggestion", {
1101 "kind": isCompletionSuggestionKind, 1086 "kind": isCompletionSuggestionKind,
1102 "relevance": isCompletionRelevance, 1087 "relevance": isInt,
1103 "completion": isString, 1088 "completion": isString,
1104 "selectionOffset": isInt, 1089 "selectionOffset": isInt,
1105 "selectionLength": isInt, 1090 "selectionLength": isInt,
1106 "isDeprecated": isBool, 1091 "isDeprecated": isBool,
1107 "isPotential": isBool 1092 "isPotential": isBool
1108 }, optionalFields: { 1093 }, optionalFields: {
1109 "docSummary": isString, 1094 "docSummary": isString,
1110 "docComplete": isString, 1095 "docComplete": isString,
1111 "declaringType": isString, 1096 "declaringType": isString,
1112 "element": isElement, 1097 "element": isElement,
(...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after
2139 * 2124 *
2140 * { 2125 * {
2141 * "newName": String 2126 * "newName": String
2142 * } 2127 * }
2143 */ 2128 */
2144 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( 2129 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject(
2145 "rename options", { 2130 "rename options", {
2146 "newName": isString 2131 "newName": isString
2147 })); 2132 }));
2148 2133
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698