| OLD | NEW |
| 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 |
| 11 */ | 11 */ |
| 12 library test.integration.protocol.matchers; | 12 library test.integration.protocol.matchers; |
| 13 | 13 |
| 14 import 'package:test/test.dart'; | 14 import 'package:test/test.dart'; |
| 15 | 15 |
| 16 import 'integration_tests.dart'; | 16 import 'integration_tests.dart'; |
| 17 | 17 |
| 18 | |
| 19 /** | 18 /** |
| 20 * server.getVersion params | 19 * server.getVersion params |
| 21 */ | 20 */ |
| 22 final Matcher isServerGetVersionParams = isNull; | 21 final Matcher isServerGetVersionParams = isNull; |
| 23 | 22 |
| 24 /** | 23 /** |
| 25 * server.getVersion result | 24 * server.getVersion result |
| 26 * | 25 * |
| 27 * { | 26 * { |
| 28 * "version": String | 27 * "version": String |
| 29 * } | 28 * } |
| 30 */ | 29 */ |
| 31 final Matcher isServerGetVersionResult = new LazyMatcher(() => new MatchesJsonOb
ject( | 30 final Matcher isServerGetVersionResult = new LazyMatcher(() => |
| 32 "server.getVersion result", { | 31 new MatchesJsonObject("server.getVersion result", {"version": isString})); |
| 33 "version": isString | |
| 34 })); | |
| 35 | 32 |
| 36 /** | 33 /** |
| 37 * server.shutdown params | 34 * server.shutdown params |
| 38 */ | 35 */ |
| 39 final Matcher isServerShutdownParams = isNull; | 36 final Matcher isServerShutdownParams = isNull; |
| 40 | 37 |
| 41 /** | 38 /** |
| 42 * server.shutdown result | 39 * server.shutdown result |
| 43 */ | 40 */ |
| 44 final Matcher isServerShutdownResult = isNull; | 41 final Matcher isServerShutdownResult = isNull; |
| 45 | 42 |
| 46 /** | 43 /** |
| 47 * server.setSubscriptions params | 44 * server.setSubscriptions params |
| 48 * | 45 * |
| 49 * { | 46 * { |
| 50 * "subscriptions": List<ServerService> | 47 * "subscriptions": List<ServerService> |
| 51 * } | 48 * } |
| 52 */ | 49 */ |
| 53 final Matcher isServerSetSubscriptionsParams = new LazyMatcher(() => new Matches
JsonObject( | 50 final Matcher isServerSetSubscriptionsParams = new LazyMatcher(() => |
| 54 "server.setSubscriptions params", { | 51 new MatchesJsonObject("server.setSubscriptions params", |
| 55 "subscriptions": isListOf(isServerService) | 52 {"subscriptions": isListOf(isServerService)})); |
| 56 })); | |
| 57 | 53 |
| 58 /** | 54 /** |
| 59 * server.setSubscriptions result | 55 * server.setSubscriptions result |
| 60 */ | 56 */ |
| 61 final Matcher isServerSetSubscriptionsResult = isNull; | 57 final Matcher isServerSetSubscriptionsResult = isNull; |
| 62 | 58 |
| 63 /** | 59 /** |
| 64 * server.connected params | 60 * server.connected params |
| 65 * | 61 * |
| 66 * { | 62 * { |
| 67 * "version": String | 63 * "version": String |
| 68 * "pid": int | 64 * "pid": int |
| 69 * "sessionId": optional String | 65 * "sessionId": optional String |
| 70 * } | 66 * } |
| 71 */ | 67 */ |
| 72 final Matcher isServerConnectedParams = new LazyMatcher(() => new MatchesJsonObj
ect( | 68 final Matcher isServerConnectedParams = new LazyMatcher(() => |
| 73 "server.connected params", { | 69 new MatchesJsonObject( |
| 74 "version": isString, | 70 "server.connected params", {"version": isString, "pid": isInt}, |
| 75 "pid": isInt | 71 optionalFields: {"sessionId": isString})); |
| 76 }, optionalFields: { | |
| 77 "sessionId": isString | |
| 78 })); | |
| 79 | 72 |
| 80 /** | 73 /** |
| 81 * server.error params | 74 * server.error params |
| 82 * | 75 * |
| 83 * { | 76 * { |
| 84 * "isFatal": bool | 77 * "isFatal": bool |
| 85 * "message": String | 78 * "message": String |
| 86 * "stackTrace": String | 79 * "stackTrace": String |
| 87 * } | 80 * } |
| 88 */ | 81 */ |
| 89 final Matcher isServerErrorParams = new LazyMatcher(() => new MatchesJsonObject( | 82 final Matcher isServerErrorParams = new LazyMatcher(() => new MatchesJsonObject( |
| 90 "server.error params", { | 83 "server.error params", |
| 91 "isFatal": isBool, | 84 {"isFatal": isBool, "message": isString, "stackTrace": isString})); |
| 92 "message": isString, | |
| 93 "stackTrace": isString | |
| 94 })); | |
| 95 | 85 |
| 96 /** | 86 /** |
| 97 * server.status params | 87 * server.status params |
| 98 * | 88 * |
| 99 * { | 89 * { |
| 100 * "analysis": optional AnalysisStatus | 90 * "analysis": optional AnalysisStatus |
| 101 * "pub": optional PubStatus | 91 * "pub": optional PubStatus |
| 102 * } | 92 * } |
| 103 */ | 93 */ |
| 104 final Matcher isServerStatusParams = new LazyMatcher(() => new MatchesJsonObject
( | 94 final Matcher isServerStatusParams = new LazyMatcher(() => |
| 105 "server.status params", null, optionalFields: { | 95 new MatchesJsonObject("server.status params", null, |
| 106 "analysis": isAnalysisStatus, | 96 optionalFields: {"analysis": isAnalysisStatus, "pub": isPubStatus})); |
| 107 "pub": isPubStatus | |
| 108 })); | |
| 109 | 97 |
| 110 /** | 98 /** |
| 111 * analysis.getErrors params | 99 * analysis.getErrors params |
| 112 * | 100 * |
| 113 * { | 101 * { |
| 114 * "file": FilePath | 102 * "file": FilePath |
| 115 * } | 103 * } |
| 116 */ | 104 */ |
| 117 final Matcher isAnalysisGetErrorsParams = new LazyMatcher(() => new MatchesJsonO
bject( | 105 final Matcher isAnalysisGetErrorsParams = new LazyMatcher(() => |
| 118 "analysis.getErrors params", { | 106 new MatchesJsonObject("analysis.getErrors params", {"file": isFilePath})); |
| 119 "file": isFilePath | |
| 120 })); | |
| 121 | 107 |
| 122 /** | 108 /** |
| 123 * analysis.getErrors result | 109 * analysis.getErrors result |
| 124 * | 110 * |
| 125 * { | 111 * { |
| 126 * "errors": List<AnalysisError> | 112 * "errors": List<AnalysisError> |
| 127 * } | 113 * } |
| 128 */ | 114 */ |
| 129 final Matcher isAnalysisGetErrorsResult = new LazyMatcher(() => new MatchesJsonO
bject( | 115 final Matcher isAnalysisGetErrorsResult = new LazyMatcher(() => |
| 130 "analysis.getErrors result", { | 116 new MatchesJsonObject( |
| 131 "errors": isListOf(isAnalysisError) | 117 "analysis.getErrors result", {"errors": isListOf(isAnalysisError)})); |
| 132 })); | |
| 133 | 118 |
| 134 /** | 119 /** |
| 135 * analysis.getHover params | 120 * analysis.getHover params |
| 136 * | 121 * |
| 137 * { | 122 * { |
| 138 * "file": FilePath | 123 * "file": FilePath |
| 139 * "offset": int | 124 * "offset": int |
| 140 * } | 125 * } |
| 141 */ | 126 */ |
| 142 final Matcher isAnalysisGetHoverParams = new LazyMatcher(() => new MatchesJsonOb
ject( | 127 final Matcher isAnalysisGetHoverParams = new LazyMatcher(() => |
| 143 "analysis.getHover params", { | 128 new MatchesJsonObject( |
| 144 "file": isFilePath, | 129 "analysis.getHover params", {"file": isFilePath, "offset": isInt})); |
| 145 "offset": isInt | |
| 146 })); | |
| 147 | 130 |
| 148 /** | 131 /** |
| 149 * analysis.getHover result | 132 * analysis.getHover result |
| 150 * | 133 * |
| 151 * { | 134 * { |
| 152 * "hovers": List<HoverInformation> | 135 * "hovers": List<HoverInformation> |
| 153 * } | 136 * } |
| 154 */ | 137 */ |
| 155 final Matcher isAnalysisGetHoverResult = new LazyMatcher(() => new MatchesJsonOb
ject( | 138 final Matcher isAnalysisGetHoverResult = new LazyMatcher(() => |
| 156 "analysis.getHover result", { | 139 new MatchesJsonObject( |
| 157 "hovers": isListOf(isHoverInformation) | 140 "analysis.getHover result", {"hovers": isListOf(isHoverInformation)})); |
| 158 })); | |
| 159 | 141 |
| 160 /** | 142 /** |
| 161 * analysis.getReachableSources params | 143 * analysis.getReachableSources params |
| 162 * | 144 * |
| 163 * { | 145 * { |
| 164 * "file": FilePath | 146 * "file": FilePath |
| 165 * } | 147 * } |
| 166 */ | 148 */ |
| 167 final Matcher isAnalysisGetReachableSourcesParams = new LazyMatcher(() => new Ma
tchesJsonObject( | 149 final Matcher isAnalysisGetReachableSourcesParams = new LazyMatcher(() => |
| 168 "analysis.getReachableSources params", { | 150 new MatchesJsonObject( |
| 169 "file": isFilePath | 151 "analysis.getReachableSources params", {"file": isFilePath})); |
| 170 })); | |
| 171 | 152 |
| 172 /** | 153 /** |
| 173 * analysis.getReachableSources result | 154 * analysis.getReachableSources result |
| 174 * | 155 * |
| 175 * { | 156 * { |
| 176 * "sources": Map<String, List<String>> | 157 * "sources": Map<String, List<String>> |
| 177 * } | 158 * } |
| 178 */ | 159 */ |
| 179 final Matcher isAnalysisGetReachableSourcesResult = new LazyMatcher(() => new Ma
tchesJsonObject( | 160 final Matcher isAnalysisGetReachableSourcesResult = new LazyMatcher(() => |
| 180 "analysis.getReachableSources result", { | 161 new MatchesJsonObject("analysis.getReachableSources result", |
| 181 "sources": isMapOf(isString, isListOf(isString)) | 162 {"sources": isMapOf(isString, isListOf(isString))})); |
| 182 })); | |
| 183 | 163 |
| 184 /** | 164 /** |
| 185 * analysis.getLibraryDependencies params | 165 * analysis.getLibraryDependencies params |
| 186 */ | 166 */ |
| 187 final Matcher isAnalysisGetLibraryDependenciesParams = isNull; | 167 final Matcher isAnalysisGetLibraryDependenciesParams = isNull; |
| 188 | 168 |
| 189 /** | 169 /** |
| 190 * analysis.getLibraryDependencies result | 170 * analysis.getLibraryDependencies result |
| 191 * | 171 * |
| 192 * { | 172 * { |
| 193 * "libraries": List<FilePath> | 173 * "libraries": List<FilePath> |
| 194 * "packageMap": Map<String, Map<String, List<FilePath>>> | 174 * "packageMap": Map<String, Map<String, List<FilePath>>> |
| 195 * } | 175 * } |
| 196 */ | 176 */ |
| 197 final Matcher isAnalysisGetLibraryDependenciesResult = new LazyMatcher(() => new
MatchesJsonObject( | 177 final Matcher isAnalysisGetLibraryDependenciesResult = new LazyMatcher( |
| 198 "analysis.getLibraryDependencies result", { | 178 () => new MatchesJsonObject("analysis.getLibraryDependencies result", { |
| 199 "libraries": isListOf(isFilePath), | 179 "libraries": isListOf(isFilePath), |
| 200 "packageMap": isMapOf(isString, isMapOf(isString, isListOf(isFilePath))) | 180 "packageMap": |
| 201 })); | 181 isMapOf(isString, isMapOf(isString, isListOf(isFilePath))) |
| 182 })); |
| 202 | 183 |
| 203 /** | 184 /** |
| 204 * analysis.getNavigation params | 185 * analysis.getNavigation params |
| 205 * | 186 * |
| 206 * { | 187 * { |
| 207 * "file": FilePath | 188 * "file": FilePath |
| 208 * "offset": int | 189 * "offset": int |
| 209 * "length": int | 190 * "length": int |
| 210 * } | 191 * } |
| 211 */ | 192 */ |
| 212 final Matcher isAnalysisGetNavigationParams = new LazyMatcher(() => new MatchesJ
sonObject( | 193 final Matcher isAnalysisGetNavigationParams = new LazyMatcher(() => |
| 213 "analysis.getNavigation params", { | 194 new MatchesJsonObject("analysis.getNavigation params", |
| 214 "file": isFilePath, | 195 {"file": isFilePath, "offset": isInt, "length": isInt})); |
| 215 "offset": isInt, | |
| 216 "length": isInt | |
| 217 })); | |
| 218 | 196 |
| 219 /** | 197 /** |
| 220 * analysis.getNavigation result | 198 * analysis.getNavigation result |
| 221 * | 199 * |
| 222 * { | 200 * { |
| 223 * "files": List<FilePath> | 201 * "files": List<FilePath> |
| 224 * "targets": List<NavigationTarget> | 202 * "targets": List<NavigationTarget> |
| 225 * "regions": List<NavigationRegion> | 203 * "regions": List<NavigationRegion> |
| 226 * } | 204 * } |
| 227 */ | 205 */ |
| 228 final Matcher isAnalysisGetNavigationResult = new LazyMatcher(() => new MatchesJ
sonObject( | 206 final Matcher isAnalysisGetNavigationResult = new LazyMatcher( |
| 229 "analysis.getNavigation result", { | 207 () => new MatchesJsonObject("analysis.getNavigation result", { |
| 230 "files": isListOf(isFilePath), | 208 "files": isListOf(isFilePath), |
| 231 "targets": isListOf(isNavigationTarget), | 209 "targets": isListOf(isNavigationTarget), |
| 232 "regions": isListOf(isNavigationRegion) | 210 "regions": isListOf(isNavigationRegion) |
| 233 })); | 211 })); |
| 234 | 212 |
| 235 /** | 213 /** |
| 236 * analysis.reanalyze params | 214 * analysis.reanalyze params |
| 237 * | 215 * |
| 238 * { | 216 * { |
| 239 * "roots": optional List<FilePath> | 217 * "roots": optional List<FilePath> |
| 240 * } | 218 * } |
| 241 */ | 219 */ |
| 242 final Matcher isAnalysisReanalyzeParams = new LazyMatcher(() => new MatchesJsonO
bject( | 220 final Matcher isAnalysisReanalyzeParams = new LazyMatcher(() => |
| 243 "analysis.reanalyze params", null, optionalFields: { | 221 new MatchesJsonObject("analysis.reanalyze params", null, |
| 244 "roots": isListOf(isFilePath) | 222 optionalFields: {"roots": isListOf(isFilePath)})); |
| 245 })); | |
| 246 | 223 |
| 247 /** | 224 /** |
| 248 * analysis.reanalyze result | 225 * analysis.reanalyze result |
| 249 */ | 226 */ |
| 250 final Matcher isAnalysisReanalyzeResult = isNull; | 227 final Matcher isAnalysisReanalyzeResult = isNull; |
| 251 | 228 |
| 252 /** | 229 /** |
| 253 * analysis.setAnalysisRoots params | 230 * analysis.setAnalysisRoots params |
| 254 * | 231 * |
| 255 * { | 232 * { |
| 256 * "included": List<FilePath> | 233 * "included": List<FilePath> |
| 257 * "excluded": List<FilePath> | 234 * "excluded": List<FilePath> |
| 258 * "packageRoots": optional Map<FilePath, FilePath> | 235 * "packageRoots": optional Map<FilePath, FilePath> |
| 259 * } | 236 * } |
| 260 */ | 237 */ |
| 261 final Matcher isAnalysisSetAnalysisRootsParams = new LazyMatcher(() => new Match
esJsonObject( | 238 final Matcher isAnalysisSetAnalysisRootsParams = new LazyMatcher(() => |
| 262 "analysis.setAnalysisRoots params", { | 239 new MatchesJsonObject("analysis.setAnalysisRoots params", |
| 263 "included": isListOf(isFilePath), | 240 {"included": isListOf(isFilePath), "excluded": isListOf(isFilePath)}, |
| 264 "excluded": isListOf(isFilePath) | 241 optionalFields: {"packageRoots": isMapOf(isFilePath, isFilePath)})); |
| 265 }, optionalFields: { | |
| 266 "packageRoots": isMapOf(isFilePath, isFilePath) | |
| 267 })); | |
| 268 | 242 |
| 269 /** | 243 /** |
| 270 * analysis.setAnalysisRoots result | 244 * analysis.setAnalysisRoots result |
| 271 */ | 245 */ |
| 272 final Matcher isAnalysisSetAnalysisRootsResult = isNull; | 246 final Matcher isAnalysisSetAnalysisRootsResult = isNull; |
| 273 | 247 |
| 274 /** | 248 /** |
| 275 * analysis.setGeneralSubscriptions params | 249 * analysis.setGeneralSubscriptions params |
| 276 * | 250 * |
| 277 * { | 251 * { |
| 278 * "subscriptions": List<GeneralAnalysisService> | 252 * "subscriptions": List<GeneralAnalysisService> |
| 279 * } | 253 * } |
| 280 */ | 254 */ |
| 281 final Matcher isAnalysisSetGeneralSubscriptionsParams = new LazyMatcher(() => ne
w MatchesJsonObject( | 255 final Matcher isAnalysisSetGeneralSubscriptionsParams = new LazyMatcher(() => |
| 282 "analysis.setGeneralSubscriptions params", { | 256 new MatchesJsonObject("analysis.setGeneralSubscriptions params", |
| 283 "subscriptions": isListOf(isGeneralAnalysisService) | 257 {"subscriptions": isListOf(isGeneralAnalysisService)})); |
| 284 })); | |
| 285 | 258 |
| 286 /** | 259 /** |
| 287 * analysis.setGeneralSubscriptions result | 260 * analysis.setGeneralSubscriptions result |
| 288 */ | 261 */ |
| 289 final Matcher isAnalysisSetGeneralSubscriptionsResult = isNull; | 262 final Matcher isAnalysisSetGeneralSubscriptionsResult = isNull; |
| 290 | 263 |
| 291 /** | 264 /** |
| 292 * analysis.setPriorityFiles params | 265 * analysis.setPriorityFiles params |
| 293 * | 266 * |
| 294 * { | 267 * { |
| 295 * "files": List<FilePath> | 268 * "files": List<FilePath> |
| 296 * } | 269 * } |
| 297 */ | 270 */ |
| 298 final Matcher isAnalysisSetPriorityFilesParams = new LazyMatcher(() => new Match
esJsonObject( | 271 final Matcher isAnalysisSetPriorityFilesParams = new LazyMatcher(() => |
| 299 "analysis.setPriorityFiles params", { | 272 new MatchesJsonObject( |
| 300 "files": isListOf(isFilePath) | 273 "analysis.setPriorityFiles params", {"files": isListOf(isFilePath)})); |
| 301 })); | |
| 302 | 274 |
| 303 /** | 275 /** |
| 304 * analysis.setPriorityFiles result | 276 * analysis.setPriorityFiles result |
| 305 */ | 277 */ |
| 306 final Matcher isAnalysisSetPriorityFilesResult = isNull; | 278 final Matcher isAnalysisSetPriorityFilesResult = isNull; |
| 307 | 279 |
| 308 /** | 280 /** |
| 309 * analysis.setSubscriptions params | 281 * analysis.setSubscriptions params |
| 310 * | 282 * |
| 311 * { | 283 * { |
| 312 * "subscriptions": Map<AnalysisService, List<FilePath>> | 284 * "subscriptions": Map<AnalysisService, List<FilePath>> |
| 313 * } | 285 * } |
| 314 */ | 286 */ |
| 315 final Matcher isAnalysisSetSubscriptionsParams = new LazyMatcher(() => new Match
esJsonObject( | 287 final Matcher isAnalysisSetSubscriptionsParams = new LazyMatcher(() => |
| 316 "analysis.setSubscriptions params", { | 288 new MatchesJsonObject("analysis.setSubscriptions params", |
| 317 "subscriptions": isMapOf(isAnalysisService, isListOf(isFilePath)) | 289 {"subscriptions": isMapOf(isAnalysisService, isListOf(isFilePath))})); |
| 318 })); | |
| 319 | 290 |
| 320 /** | 291 /** |
| 321 * analysis.setSubscriptions result | 292 * analysis.setSubscriptions result |
| 322 */ | 293 */ |
| 323 final Matcher isAnalysisSetSubscriptionsResult = isNull; | 294 final Matcher isAnalysisSetSubscriptionsResult = isNull; |
| 324 | 295 |
| 325 /** | 296 /** |
| 326 * analysis.updateContent params | 297 * analysis.updateContent params |
| 327 * | 298 * |
| 328 * { | 299 * { |
| 329 * "files": Map<FilePath, AddContentOverlay | ChangeContentOverlay | RemoveCon
tentOverlay> | 300 * "files": Map<FilePath, AddContentOverlay | ChangeContentOverlay | RemoveCon
tentOverlay> |
| 330 * } | 301 * } |
| 331 */ | 302 */ |
| 332 final Matcher isAnalysisUpdateContentParams = new LazyMatcher(() => new MatchesJ
sonObject( | 303 final Matcher isAnalysisUpdateContentParams = new LazyMatcher( |
| 333 "analysis.updateContent params", { | 304 () => new MatchesJsonObject("analysis.updateContent params", { |
| 334 "files": isMapOf(isFilePath, isOneOf([isAddContentOverlay, isChangeContentOv
erlay, isRemoveContentOverlay])) | 305 "files": isMapOf( |
| 335 })); | 306 isFilePath, |
| 307 isOneOf([ |
| 308 isAddContentOverlay, |
| 309 isChangeContentOverlay, |
| 310 isRemoveContentOverlay |
| 311 ])) |
| 312 })); |
| 336 | 313 |
| 337 /** | 314 /** |
| 338 * analysis.updateContent result | 315 * analysis.updateContent result |
| 339 * | 316 * |
| 340 * { | 317 * { |
| 341 * } | 318 * } |
| 342 */ | 319 */ |
| 343 final Matcher isAnalysisUpdateContentResult = new LazyMatcher(() => new MatchesJ
sonObject( | 320 final Matcher isAnalysisUpdateContentResult = new LazyMatcher( |
| 344 "analysis.updateContent result", null)); | 321 () => new MatchesJsonObject("analysis.updateContent result", null)); |
| 345 | 322 |
| 346 /** | 323 /** |
| 347 * analysis.updateOptions params | 324 * analysis.updateOptions params |
| 348 * | 325 * |
| 349 * { | 326 * { |
| 350 * "options": AnalysisOptions | 327 * "options": AnalysisOptions |
| 351 * } | 328 * } |
| 352 */ | 329 */ |
| 353 final Matcher isAnalysisUpdateOptionsParams = new LazyMatcher(() => new MatchesJ
sonObject( | 330 final Matcher isAnalysisUpdateOptionsParams = new LazyMatcher(() => |
| 354 "analysis.updateOptions params", { | 331 new MatchesJsonObject( |
| 355 "options": isAnalysisOptions | 332 "analysis.updateOptions params", {"options": isAnalysisOptions})); |
| 356 })); | |
| 357 | 333 |
| 358 /** | 334 /** |
| 359 * analysis.updateOptions result | 335 * analysis.updateOptions result |
| 360 */ | 336 */ |
| 361 final Matcher isAnalysisUpdateOptionsResult = isNull; | 337 final Matcher isAnalysisUpdateOptionsResult = isNull; |
| 362 | 338 |
| 363 /** | 339 /** |
| 364 * analysis.analyzedFiles params | 340 * analysis.analyzedFiles params |
| 365 * | 341 * |
| 366 * { | 342 * { |
| 367 * "directories": List<FilePath> | 343 * "directories": List<FilePath> |
| 368 * } | 344 * } |
| 369 */ | 345 */ |
| 370 final Matcher isAnalysisAnalyzedFilesParams = new LazyMatcher(() => new MatchesJ
sonObject( | 346 final Matcher isAnalysisAnalyzedFilesParams = new LazyMatcher(() => |
| 371 "analysis.analyzedFiles params", { | 347 new MatchesJsonObject("analysis.analyzedFiles params", |
| 372 "directories": isListOf(isFilePath) | 348 {"directories": isListOf(isFilePath)})); |
| 373 })); | |
| 374 | 349 |
| 375 /** | 350 /** |
| 376 * analysis.errors params | 351 * analysis.errors params |
| 377 * | 352 * |
| 378 * { | 353 * { |
| 379 * "file": FilePath | 354 * "file": FilePath |
| 380 * "errors": List<AnalysisError> | 355 * "errors": List<AnalysisError> |
| 381 * } | 356 * } |
| 382 */ | 357 */ |
| 383 final Matcher isAnalysisErrorsParams = new LazyMatcher(() => new MatchesJsonObje
ct( | 358 final Matcher isAnalysisErrorsParams = new LazyMatcher(() => |
| 384 "analysis.errors params", { | 359 new MatchesJsonObject("analysis.errors params", |
| 385 "file": isFilePath, | 360 {"file": isFilePath, "errors": isListOf(isAnalysisError)})); |
| 386 "errors": isListOf(isAnalysisError) | |
| 387 })); | |
| 388 | 361 |
| 389 /** | 362 /** |
| 390 * analysis.flushResults params | 363 * analysis.flushResults params |
| 391 * | 364 * |
| 392 * { | 365 * { |
| 393 * "files": List<FilePath> | 366 * "files": List<FilePath> |
| 394 * } | 367 * } |
| 395 */ | 368 */ |
| 396 final Matcher isAnalysisFlushResultsParams = new LazyMatcher(() => new MatchesJs
onObject( | 369 final Matcher isAnalysisFlushResultsParams = new LazyMatcher(() => |
| 397 "analysis.flushResults params", { | 370 new MatchesJsonObject( |
| 398 "files": isListOf(isFilePath) | 371 "analysis.flushResults params", {"files": isListOf(isFilePath)})); |
| 399 })); | |
| 400 | 372 |
| 401 /** | 373 /** |
| 402 * analysis.folding params | 374 * analysis.folding params |
| 403 * | 375 * |
| 404 * { | 376 * { |
| 405 * "file": FilePath | 377 * "file": FilePath |
| 406 * "regions": List<FoldingRegion> | 378 * "regions": List<FoldingRegion> |
| 407 * } | 379 * } |
| 408 */ | 380 */ |
| 409 final Matcher isAnalysisFoldingParams = new LazyMatcher(() => new MatchesJsonObj
ect( | 381 final Matcher isAnalysisFoldingParams = new LazyMatcher(() => |
| 410 "analysis.folding params", { | 382 new MatchesJsonObject("analysis.folding params", |
| 411 "file": isFilePath, | 383 {"file": isFilePath, "regions": isListOf(isFoldingRegion)})); |
| 412 "regions": isListOf(isFoldingRegion) | |
| 413 })); | |
| 414 | 384 |
| 415 /** | 385 /** |
| 416 * analysis.highlights params | 386 * analysis.highlights params |
| 417 * | 387 * |
| 418 * { | 388 * { |
| 419 * "file": FilePath | 389 * "file": FilePath |
| 420 * "regions": List<HighlightRegion> | 390 * "regions": List<HighlightRegion> |
| 421 * } | 391 * } |
| 422 */ | 392 */ |
| 423 final Matcher isAnalysisHighlightsParams = new LazyMatcher(() => new MatchesJson
Object( | 393 final Matcher isAnalysisHighlightsParams = new LazyMatcher(() => |
| 424 "analysis.highlights params", { | 394 new MatchesJsonObject("analysis.highlights params", |
| 425 "file": isFilePath, | 395 {"file": isFilePath, "regions": isListOf(isHighlightRegion)})); |
| 426 "regions": isListOf(isHighlightRegion) | |
| 427 })); | |
| 428 | 396 |
| 429 /** | 397 /** |
| 430 * analysis.implemented params | 398 * analysis.implemented params |
| 431 * | 399 * |
| 432 * { | 400 * { |
| 433 * "file": FilePath | 401 * "file": FilePath |
| 434 * "classes": List<ImplementedClass> | 402 * "classes": List<ImplementedClass> |
| 435 * "members": List<ImplementedMember> | 403 * "members": List<ImplementedMember> |
| 436 * } | 404 * } |
| 437 */ | 405 */ |
| 438 final Matcher isAnalysisImplementedParams = new LazyMatcher(() => new MatchesJso
nObject( | 406 final Matcher isAnalysisImplementedParams = |
| 439 "analysis.implemented params", { | 407 new LazyMatcher(() => new MatchesJsonObject("analysis.implemented params", { |
| 440 "file": isFilePath, | 408 "file": isFilePath, |
| 441 "classes": isListOf(isImplementedClass), | 409 "classes": isListOf(isImplementedClass), |
| 442 "members": isListOf(isImplementedMember) | 410 "members": isListOf(isImplementedMember) |
| 443 })); | 411 })); |
| 444 | 412 |
| 445 /** | 413 /** |
| 446 * analysis.invalidate params | 414 * analysis.invalidate params |
| 447 * | 415 * |
| 448 * { | 416 * { |
| 449 * "file": FilePath | 417 * "file": FilePath |
| 450 * "offset": int | 418 * "offset": int |
| 451 * "length": int | 419 * "length": int |
| 452 * "delta": int | 420 * "delta": int |
| 453 * } | 421 * } |
| 454 */ | 422 */ |
| 455 final Matcher isAnalysisInvalidateParams = new LazyMatcher(() => new MatchesJson
Object( | 423 final Matcher isAnalysisInvalidateParams = new LazyMatcher(() => |
| 456 "analysis.invalidate params", { | 424 new MatchesJsonObject("analysis.invalidate params", { |
| 457 "file": isFilePath, | 425 "file": isFilePath, |
| 458 "offset": isInt, | 426 "offset": isInt, |
| 459 "length": isInt, | 427 "length": isInt, |
| 460 "delta": isInt | 428 "delta": isInt |
| 461 })); | 429 })); |
| 462 | 430 |
| 463 /** | 431 /** |
| 464 * analysis.navigation params | 432 * analysis.navigation params |
| 465 * | 433 * |
| 466 * { | 434 * { |
| 467 * "file": FilePath | 435 * "file": FilePath |
| 468 * "regions": List<NavigationRegion> | 436 * "regions": List<NavigationRegion> |
| 469 * "targets": List<NavigationTarget> | 437 * "targets": List<NavigationTarget> |
| 470 * "files": List<FilePath> | 438 * "files": List<FilePath> |
| 471 * } | 439 * } |
| 472 */ | 440 */ |
| 473 final Matcher isAnalysisNavigationParams = new LazyMatcher(() => new MatchesJson
Object( | 441 final Matcher isAnalysisNavigationParams = |
| 474 "analysis.navigation params", { | 442 new LazyMatcher(() => new MatchesJsonObject("analysis.navigation params", { |
| 475 "file": isFilePath, | 443 "file": isFilePath, |
| 476 "regions": isListOf(isNavigationRegion), | 444 "regions": isListOf(isNavigationRegion), |
| 477 "targets": isListOf(isNavigationTarget), | 445 "targets": isListOf(isNavigationTarget), |
| 478 "files": isListOf(isFilePath) | 446 "files": isListOf(isFilePath) |
| 479 })); | 447 })); |
| 480 | 448 |
| 481 /** | 449 /** |
| 482 * analysis.occurrences params | 450 * analysis.occurrences params |
| 483 * | 451 * |
| 484 * { | 452 * { |
| 485 * "file": FilePath | 453 * "file": FilePath |
| 486 * "occurrences": List<Occurrences> | 454 * "occurrences": List<Occurrences> |
| 487 * } | 455 * } |
| 488 */ | 456 */ |
| 489 final Matcher isAnalysisOccurrencesParams = new LazyMatcher(() => new MatchesJso
nObject( | 457 final Matcher isAnalysisOccurrencesParams = new LazyMatcher(() => |
| 490 "analysis.occurrences params", { | 458 new MatchesJsonObject("analysis.occurrences params", |
| 491 "file": isFilePath, | 459 {"file": isFilePath, "occurrences": isListOf(isOccurrences)})); |
| 492 "occurrences": isListOf(isOccurrences) | |
| 493 })); | |
| 494 | 460 |
| 495 /** | 461 /** |
| 496 * analysis.outline params | 462 * analysis.outline params |
| 497 * | 463 * |
| 498 * { | 464 * { |
| 499 * "file": FilePath | 465 * "file": FilePath |
| 500 * "kind": FileKind | 466 * "kind": FileKind |
| 501 * "libraryName": optional String | 467 * "libraryName": optional String |
| 502 * "outline": Outline | 468 * "outline": Outline |
| 503 * } | 469 * } |
| 504 */ | 470 */ |
| 505 final Matcher isAnalysisOutlineParams = new LazyMatcher(() => new MatchesJsonObj
ect( | 471 final Matcher isAnalysisOutlineParams = new LazyMatcher(() => |
| 506 "analysis.outline params", { | 472 new MatchesJsonObject("analysis.outline params", |
| 507 "file": isFilePath, | 473 {"file": isFilePath, "kind": isFileKind, "outline": isOutline}, |
| 508 "kind": isFileKind, | 474 optionalFields: {"libraryName": isString})); |
| 509 "outline": isOutline | |
| 510 }, optionalFields: { | |
| 511 "libraryName": isString | |
| 512 })); | |
| 513 | 475 |
| 514 /** | 476 /** |
| 515 * analysis.overrides params | 477 * analysis.overrides params |
| 516 * | 478 * |
| 517 * { | 479 * { |
| 518 * "file": FilePath | 480 * "file": FilePath |
| 519 * "overrides": List<Override> | 481 * "overrides": List<Override> |
| 520 * } | 482 * } |
| 521 */ | 483 */ |
| 522 final Matcher isAnalysisOverridesParams = new LazyMatcher(() => new MatchesJsonO
bject( | 484 final Matcher isAnalysisOverridesParams = new LazyMatcher(() => |
| 523 "analysis.overrides params", { | 485 new MatchesJsonObject("analysis.overrides params", |
| 524 "file": isFilePath, | 486 {"file": isFilePath, "overrides": isListOf(isOverride)})); |
| 525 "overrides": isListOf(isOverride) | |
| 526 })); | |
| 527 | 487 |
| 528 /** | 488 /** |
| 529 * completion.getSuggestions params | 489 * completion.getSuggestions params |
| 530 * | 490 * |
| 531 * { | 491 * { |
| 532 * "file": FilePath | 492 * "file": FilePath |
| 533 * "offset": int | 493 * "offset": int |
| 534 * } | 494 * } |
| 535 */ | 495 */ |
| 536 final Matcher isCompletionGetSuggestionsParams = new LazyMatcher(() => new Match
esJsonObject( | 496 final Matcher isCompletionGetSuggestionsParams = new LazyMatcher(() => |
| 537 "completion.getSuggestions params", { | 497 new MatchesJsonObject("completion.getSuggestions params", |
| 538 "file": isFilePath, | 498 {"file": isFilePath, "offset": isInt})); |
| 539 "offset": isInt | |
| 540 })); | |
| 541 | 499 |
| 542 /** | 500 /** |
| 543 * completion.getSuggestions result | 501 * completion.getSuggestions result |
| 544 * | 502 * |
| 545 * { | 503 * { |
| 546 * "id": CompletionId | 504 * "id": CompletionId |
| 547 * } | 505 * } |
| 548 */ | 506 */ |
| 549 final Matcher isCompletionGetSuggestionsResult = new LazyMatcher(() => new Match
esJsonObject( | 507 final Matcher isCompletionGetSuggestionsResult = new LazyMatcher(() => |
| 550 "completion.getSuggestions result", { | 508 new MatchesJsonObject( |
| 551 "id": isCompletionId | 509 "completion.getSuggestions result", {"id": isCompletionId})); |
| 552 })); | |
| 553 | 510 |
| 554 /** | 511 /** |
| 555 * completion.results params | 512 * completion.results params |
| 556 * | 513 * |
| 557 * { | 514 * { |
| 558 * "id": CompletionId | 515 * "id": CompletionId |
| 559 * "replacementOffset": int | 516 * "replacementOffset": int |
| 560 * "replacementLength": int | 517 * "replacementLength": int |
| 561 * "results": List<CompletionSuggestion> | 518 * "results": List<CompletionSuggestion> |
| 562 * "isLast": bool | 519 * "isLast": bool |
| 563 * } | 520 * } |
| 564 */ | 521 */ |
| 565 final Matcher isCompletionResultsParams = new LazyMatcher(() => new MatchesJsonO
bject( | 522 final Matcher isCompletionResultsParams = |
| 566 "completion.results params", { | 523 new LazyMatcher(() => new MatchesJsonObject("completion.results params", { |
| 567 "id": isCompletionId, | 524 "id": isCompletionId, |
| 568 "replacementOffset": isInt, | 525 "replacementOffset": isInt, |
| 569 "replacementLength": isInt, | 526 "replacementLength": isInt, |
| 570 "results": isListOf(isCompletionSuggestion), | 527 "results": isListOf(isCompletionSuggestion), |
| 571 "isLast": isBool | 528 "isLast": isBool |
| 572 })); | 529 })); |
| 573 | 530 |
| 574 /** | 531 /** |
| 575 * search.findElementReferences params | 532 * search.findElementReferences params |
| 576 * | 533 * |
| 577 * { | 534 * { |
| 578 * "file": FilePath | 535 * "file": FilePath |
| 579 * "offset": int | 536 * "offset": int |
| 580 * "includePotential": bool | 537 * "includePotential": bool |
| 581 * } | 538 * } |
| 582 */ | 539 */ |
| 583 final Matcher isSearchFindElementReferencesParams = new LazyMatcher(() => new Ma
tchesJsonObject( | 540 final Matcher isSearchFindElementReferencesParams = new LazyMatcher(() => |
| 584 "search.findElementReferences params", { | 541 new MatchesJsonObject("search.findElementReferences params", |
| 585 "file": isFilePath, | 542 {"file": isFilePath, "offset": isInt, "includePotential": isBool})); |
| 586 "offset": isInt, | |
| 587 "includePotential": isBool | |
| 588 })); | |
| 589 | 543 |
| 590 /** | 544 /** |
| 591 * search.findElementReferences result | 545 * search.findElementReferences result |
| 592 * | 546 * |
| 593 * { | 547 * { |
| 594 * "id": optional SearchId | 548 * "id": optional SearchId |
| 595 * "element": optional Element | 549 * "element": optional Element |
| 596 * } | 550 * } |
| 597 */ | 551 */ |
| 598 final Matcher isSearchFindElementReferencesResult = new LazyMatcher(() => new Ma
tchesJsonObject( | 552 final Matcher isSearchFindElementReferencesResult = new LazyMatcher(() => |
| 599 "search.findElementReferences result", null, optionalFields: { | 553 new MatchesJsonObject("search.findElementReferences result", null, |
| 600 "id": isSearchId, | 554 optionalFields: {"id": isSearchId, "element": isElement})); |
| 601 "element": isElement | |
| 602 })); | |
| 603 | 555 |
| 604 /** | 556 /** |
| 605 * search.findMemberDeclarations params | 557 * search.findMemberDeclarations params |
| 606 * | 558 * |
| 607 * { | 559 * { |
| 608 * "name": String | 560 * "name": String |
| 609 * } | 561 * } |
| 610 */ | 562 */ |
| 611 final Matcher isSearchFindMemberDeclarationsParams = new LazyMatcher(() => new M
atchesJsonObject( | 563 final Matcher isSearchFindMemberDeclarationsParams = new LazyMatcher(() => |
| 612 "search.findMemberDeclarations params", { | 564 new MatchesJsonObject( |
| 613 "name": isString | 565 "search.findMemberDeclarations params", {"name": isString})); |
| 614 })); | |
| 615 | 566 |
| 616 /** | 567 /** |
| 617 * search.findMemberDeclarations result | 568 * search.findMemberDeclarations result |
| 618 * | 569 * |
| 619 * { | 570 * { |
| 620 * "id": SearchId | 571 * "id": SearchId |
| 621 * } | 572 * } |
| 622 */ | 573 */ |
| 623 final Matcher isSearchFindMemberDeclarationsResult = new LazyMatcher(() => new M
atchesJsonObject( | 574 final Matcher isSearchFindMemberDeclarationsResult = new LazyMatcher(() => |
| 624 "search.findMemberDeclarations result", { | 575 new MatchesJsonObject( |
| 625 "id": isSearchId | 576 "search.findMemberDeclarations result", {"id": isSearchId})); |
| 626 })); | |
| 627 | 577 |
| 628 /** | 578 /** |
| 629 * search.findMemberReferences params | 579 * search.findMemberReferences params |
| 630 * | 580 * |
| 631 * { | 581 * { |
| 632 * "name": String | 582 * "name": String |
| 633 * } | 583 * } |
| 634 */ | 584 */ |
| 635 final Matcher isSearchFindMemberReferencesParams = new LazyMatcher(() => new Mat
chesJsonObject( | 585 final Matcher isSearchFindMemberReferencesParams = new LazyMatcher(() => |
| 636 "search.findMemberReferences params", { | 586 new MatchesJsonObject( |
| 637 "name": isString | 587 "search.findMemberReferences params", {"name": isString})); |
| 638 })); | |
| 639 | 588 |
| 640 /** | 589 /** |
| 641 * search.findMemberReferences result | 590 * search.findMemberReferences result |
| 642 * | 591 * |
| 643 * { | 592 * { |
| 644 * "id": SearchId | 593 * "id": SearchId |
| 645 * } | 594 * } |
| 646 */ | 595 */ |
| 647 final Matcher isSearchFindMemberReferencesResult = new LazyMatcher(() => new Mat
chesJsonObject( | 596 final Matcher isSearchFindMemberReferencesResult = new LazyMatcher(() => |
| 648 "search.findMemberReferences result", { | 597 new MatchesJsonObject( |
| 649 "id": isSearchId | 598 "search.findMemberReferences result", {"id": isSearchId})); |
| 650 })); | |
| 651 | 599 |
| 652 /** | 600 /** |
| 653 * search.findTopLevelDeclarations params | 601 * search.findTopLevelDeclarations params |
| 654 * | 602 * |
| 655 * { | 603 * { |
| 656 * "pattern": String | 604 * "pattern": String |
| 657 * } | 605 * } |
| 658 */ | 606 */ |
| 659 final Matcher isSearchFindTopLevelDeclarationsParams = new LazyMatcher(() => new
MatchesJsonObject( | 607 final Matcher isSearchFindTopLevelDeclarationsParams = new LazyMatcher(() => |
| 660 "search.findTopLevelDeclarations params", { | 608 new MatchesJsonObject( |
| 661 "pattern": isString | 609 "search.findTopLevelDeclarations params", {"pattern": isString})); |
| 662 })); | |
| 663 | 610 |
| 664 /** | 611 /** |
| 665 * search.findTopLevelDeclarations result | 612 * search.findTopLevelDeclarations result |
| 666 * | 613 * |
| 667 * { | 614 * { |
| 668 * "id": SearchId | 615 * "id": SearchId |
| 669 * } | 616 * } |
| 670 */ | 617 */ |
| 671 final Matcher isSearchFindTopLevelDeclarationsResult = new LazyMatcher(() => new
MatchesJsonObject( | 618 final Matcher isSearchFindTopLevelDeclarationsResult = new LazyMatcher(() => |
| 672 "search.findTopLevelDeclarations result", { | 619 new MatchesJsonObject( |
| 673 "id": isSearchId | 620 "search.findTopLevelDeclarations result", {"id": isSearchId})); |
| 674 })); | |
| 675 | 621 |
| 676 /** | 622 /** |
| 677 * search.getTypeHierarchy params | 623 * search.getTypeHierarchy params |
| 678 * | 624 * |
| 679 * { | 625 * { |
| 680 * "file": FilePath | 626 * "file": FilePath |
| 681 * "offset": int | 627 * "offset": int |
| 682 * "superOnly": optional bool | 628 * "superOnly": optional bool |
| 683 * } | 629 * } |
| 684 */ | 630 */ |
| 685 final Matcher isSearchGetTypeHierarchyParams = new LazyMatcher(() => new Matches
JsonObject( | 631 final Matcher isSearchGetTypeHierarchyParams = new LazyMatcher(() => |
| 686 "search.getTypeHierarchy params", { | 632 new MatchesJsonObject( |
| 687 "file": isFilePath, | 633 "search.getTypeHierarchy params", {"file": isFilePath, "offset": isInt}, |
| 688 "offset": isInt | 634 optionalFields: {"superOnly": isBool})); |
| 689 }, optionalFields: { | |
| 690 "superOnly": isBool | |
| 691 })); | |
| 692 | 635 |
| 693 /** | 636 /** |
| 694 * search.getTypeHierarchy result | 637 * search.getTypeHierarchy result |
| 695 * | 638 * |
| 696 * { | 639 * { |
| 697 * "hierarchyItems": optional List<TypeHierarchyItem> | 640 * "hierarchyItems": optional List<TypeHierarchyItem> |
| 698 * } | 641 * } |
| 699 */ | 642 */ |
| 700 final Matcher isSearchGetTypeHierarchyResult = new LazyMatcher(() => new Matches
JsonObject( | 643 final Matcher isSearchGetTypeHierarchyResult = new LazyMatcher(() => |
| 701 "search.getTypeHierarchy result", null, optionalFields: { | 644 new MatchesJsonObject("search.getTypeHierarchy result", null, |
| 702 "hierarchyItems": isListOf(isTypeHierarchyItem) | 645 optionalFields: {"hierarchyItems": isListOf(isTypeHierarchyItem)})); |
| 703 })); | |
| 704 | 646 |
| 705 /** | 647 /** |
| 706 * search.results params | 648 * search.results params |
| 707 * | 649 * |
| 708 * { | 650 * { |
| 709 * "id": SearchId | 651 * "id": SearchId |
| 710 * "results": List<SearchResult> | 652 * "results": List<SearchResult> |
| 711 * "isLast": bool | 653 * "isLast": bool |
| 712 * } | 654 * } |
| 713 */ | 655 */ |
| 714 final Matcher isSearchResultsParams = new LazyMatcher(() => new MatchesJsonObjec
t( | 656 final Matcher isSearchResultsParams = new LazyMatcher(() => |
| 715 "search.results params", { | 657 new MatchesJsonObject("search.results params", { |
| 716 "id": isSearchId, | 658 "id": isSearchId, |
| 717 "results": isListOf(isSearchResult), | 659 "results": isListOf(isSearchResult), |
| 718 "isLast": isBool | 660 "isLast": isBool |
| 719 })); | 661 })); |
| 720 | 662 |
| 721 /** | 663 /** |
| 722 * edit.format params | 664 * edit.format params |
| 723 * | 665 * |
| 724 * { | 666 * { |
| 725 * "file": FilePath | 667 * "file": FilePath |
| 726 * "selectionOffset": int | 668 * "selectionOffset": int |
| 727 * "selectionLength": int | 669 * "selectionLength": int |
| 728 * "lineLength": optional int | 670 * "lineLength": optional int |
| 729 * } | 671 * } |
| 730 */ | 672 */ |
| 731 final Matcher isEditFormatParams = new LazyMatcher(() => new MatchesJsonObject( | 673 final Matcher isEditFormatParams = new LazyMatcher(() => new MatchesJsonObject( |
| 732 "edit.format params", { | 674 "edit.format params", |
| 733 "file": isFilePath, | 675 {"file": isFilePath, "selectionOffset": isInt, "selectionLength": isInt}, |
| 734 "selectionOffset": isInt, | 676 optionalFields: {"lineLength": isInt})); |
| 735 "selectionLength": isInt | |
| 736 }, optionalFields: { | |
| 737 "lineLength": isInt | |
| 738 })); | |
| 739 | 677 |
| 740 /** | 678 /** |
| 741 * edit.format result | 679 * edit.format result |
| 742 * | 680 * |
| 743 * { | 681 * { |
| 744 * "edits": List<SourceEdit> | 682 * "edits": List<SourceEdit> |
| 745 * "selectionOffset": int | 683 * "selectionOffset": int |
| 746 * "selectionLength": int | 684 * "selectionLength": int |
| 747 * } | 685 * } |
| 748 */ | 686 */ |
| 749 final Matcher isEditFormatResult = new LazyMatcher(() => new MatchesJsonObject( | 687 final Matcher isEditFormatResult = |
| 750 "edit.format result", { | 688 new LazyMatcher(() => new MatchesJsonObject("edit.format result", { |
| 751 "edits": isListOf(isSourceEdit), | 689 "edits": isListOf(isSourceEdit), |
| 752 "selectionOffset": isInt, | 690 "selectionOffset": isInt, |
| 753 "selectionLength": isInt | 691 "selectionLength": isInt |
| 754 })); | 692 })); |
| 755 | 693 |
| 756 /** | 694 /** |
| 757 * edit.getAssists params | 695 * edit.getAssists params |
| 758 * | 696 * |
| 759 * { | 697 * { |
| 760 * "file": FilePath | 698 * "file": FilePath |
| 761 * "offset": int | 699 * "offset": int |
| 762 * "length": int | 700 * "length": int |
| 763 * } | 701 * } |
| 764 */ | 702 */ |
| 765 final Matcher isEditGetAssistsParams = new LazyMatcher(() => new MatchesJsonObje
ct( | 703 final Matcher isEditGetAssistsParams = new LazyMatcher(() => |
| 766 "edit.getAssists params", { | 704 new MatchesJsonObject("edit.getAssists params", |
| 767 "file": isFilePath, | 705 {"file": isFilePath, "offset": isInt, "length": isInt})); |
| 768 "offset": isInt, | |
| 769 "length": isInt | |
| 770 })); | |
| 771 | 706 |
| 772 /** | 707 /** |
| 773 * edit.getAssists result | 708 * edit.getAssists result |
| 774 * | 709 * |
| 775 * { | 710 * { |
| 776 * "assists": List<SourceChange> | 711 * "assists": List<SourceChange> |
| 777 * } | 712 * } |
| 778 */ | 713 */ |
| 779 final Matcher isEditGetAssistsResult = new LazyMatcher(() => new MatchesJsonObje
ct( | 714 final Matcher isEditGetAssistsResult = new LazyMatcher(() => |
| 780 "edit.getAssists result", { | 715 new MatchesJsonObject( |
| 781 "assists": isListOf(isSourceChange) | 716 "edit.getAssists result", {"assists": isListOf(isSourceChange)})); |
| 782 })); | |
| 783 | 717 |
| 784 /** | 718 /** |
| 785 * edit.getAvailableRefactorings params | 719 * edit.getAvailableRefactorings params |
| 786 * | 720 * |
| 787 * { | 721 * { |
| 788 * "file": FilePath | 722 * "file": FilePath |
| 789 * "offset": int | 723 * "offset": int |
| 790 * "length": int | 724 * "length": int |
| 791 * } | 725 * } |
| 792 */ | 726 */ |
| 793 final Matcher isEditGetAvailableRefactoringsParams = new LazyMatcher(() => new M
atchesJsonObject( | 727 final Matcher isEditGetAvailableRefactoringsParams = new LazyMatcher(() => |
| 794 "edit.getAvailableRefactorings params", { | 728 new MatchesJsonObject("edit.getAvailableRefactorings params", |
| 795 "file": isFilePath, | 729 {"file": isFilePath, "offset": isInt, "length": isInt})); |
| 796 "offset": isInt, | |
| 797 "length": isInt | |
| 798 })); | |
| 799 | 730 |
| 800 /** | 731 /** |
| 801 * edit.getAvailableRefactorings result | 732 * edit.getAvailableRefactorings result |
| 802 * | 733 * |
| 803 * { | 734 * { |
| 804 * "kinds": List<RefactoringKind> | 735 * "kinds": List<RefactoringKind> |
| 805 * } | 736 * } |
| 806 */ | 737 */ |
| 807 final Matcher isEditGetAvailableRefactoringsResult = new LazyMatcher(() => new M
atchesJsonObject( | 738 final Matcher isEditGetAvailableRefactoringsResult = new LazyMatcher(() => |
| 808 "edit.getAvailableRefactorings result", { | 739 new MatchesJsonObject("edit.getAvailableRefactorings result", |
| 809 "kinds": isListOf(isRefactoringKind) | 740 {"kinds": isListOf(isRefactoringKind)})); |
| 810 })); | |
| 811 | 741 |
| 812 /** | 742 /** |
| 813 * edit.getFixes params | 743 * edit.getFixes params |
| 814 * | 744 * |
| 815 * { | 745 * { |
| 816 * "file": FilePath | 746 * "file": FilePath |
| 817 * "offset": int | 747 * "offset": int |
| 818 * } | 748 * } |
| 819 */ | 749 */ |
| 820 final Matcher isEditGetFixesParams = new LazyMatcher(() => new MatchesJsonObject
( | 750 final Matcher isEditGetFixesParams = new LazyMatcher(() => |
| 821 "edit.getFixes params", { | 751 new MatchesJsonObject( |
| 822 "file": isFilePath, | 752 "edit.getFixes params", {"file": isFilePath, "offset": isInt})); |
| 823 "offset": isInt | |
| 824 })); | |
| 825 | 753 |
| 826 /** | 754 /** |
| 827 * edit.getFixes result | 755 * edit.getFixes result |
| 828 * | 756 * |
| 829 * { | 757 * { |
| 830 * "fixes": List<AnalysisErrorFixes> | 758 * "fixes": List<AnalysisErrorFixes> |
| 831 * } | 759 * } |
| 832 */ | 760 */ |
| 833 final Matcher isEditGetFixesResult = new LazyMatcher(() => new MatchesJsonObject
( | 761 final Matcher isEditGetFixesResult = new LazyMatcher(() => |
| 834 "edit.getFixes result", { | 762 new MatchesJsonObject( |
| 835 "fixes": isListOf(isAnalysisErrorFixes) | 763 "edit.getFixes result", {"fixes": isListOf(isAnalysisErrorFixes)})); |
| 836 })); | |
| 837 | 764 |
| 838 /** | 765 /** |
| 839 * edit.getRefactoring params | 766 * edit.getRefactoring params |
| 840 * | 767 * |
| 841 * { | 768 * { |
| 842 * "kind": RefactoringKind | 769 * "kind": RefactoringKind |
| 843 * "file": FilePath | 770 * "file": FilePath |
| 844 * "offset": int | 771 * "offset": int |
| 845 * "length": int | 772 * "length": int |
| 846 * "validateOnly": bool | 773 * "validateOnly": bool |
| 847 * "options": optional RefactoringOptions | 774 * "options": optional RefactoringOptions |
| 848 * } | 775 * } |
| 849 */ | 776 */ |
| 850 final Matcher isEditGetRefactoringParams = new LazyMatcher(() => new MatchesJson
Object( | 777 final Matcher isEditGetRefactoringParams = |
| 851 "edit.getRefactoring params", { | 778 new LazyMatcher(() => new MatchesJsonObject("edit.getRefactoring params", { |
| 852 "kind": isRefactoringKind, | 779 "kind": isRefactoringKind, |
| 853 "file": isFilePath, | 780 "file": isFilePath, |
| 854 "offset": isInt, | 781 "offset": isInt, |
| 855 "length": isInt, | 782 "length": isInt, |
| 856 "validateOnly": isBool | 783 "validateOnly": isBool |
| 857 }, optionalFields: { | 784 }, optionalFields: { |
| 858 "options": isRefactoringOptions | 785 "options": isRefactoringOptions |
| 859 })); | 786 })); |
| 860 | 787 |
| 861 /** | 788 /** |
| 862 * edit.getRefactoring result | 789 * edit.getRefactoring result |
| 863 * | 790 * |
| 864 * { | 791 * { |
| 865 * "initialProblems": List<RefactoringProblem> | 792 * "initialProblems": List<RefactoringProblem> |
| 866 * "optionsProblems": List<RefactoringProblem> | 793 * "optionsProblems": List<RefactoringProblem> |
| 867 * "finalProblems": List<RefactoringProblem> | 794 * "finalProblems": List<RefactoringProblem> |
| 868 * "feedback": optional RefactoringFeedback | 795 * "feedback": optional RefactoringFeedback |
| 869 * "change": optional SourceChange | 796 * "change": optional SourceChange |
| 870 * "potentialEdits": optional List<String> | 797 * "potentialEdits": optional List<String> |
| 871 * } | 798 * } |
| 872 */ | 799 */ |
| 873 final Matcher isEditGetRefactoringResult = new LazyMatcher(() => new MatchesJson
Object( | 800 final Matcher isEditGetRefactoringResult = |
| 874 "edit.getRefactoring result", { | 801 new LazyMatcher(() => new MatchesJsonObject("edit.getRefactoring result", { |
| 875 "initialProblems": isListOf(isRefactoringProblem), | 802 "initialProblems": isListOf(isRefactoringProblem), |
| 876 "optionsProblems": isListOf(isRefactoringProblem), | 803 "optionsProblems": isListOf(isRefactoringProblem), |
| 877 "finalProblems": isListOf(isRefactoringProblem) | 804 "finalProblems": isListOf(isRefactoringProblem) |
| 878 }, optionalFields: { | 805 }, optionalFields: { |
| 879 "feedback": isRefactoringFeedback, | 806 "feedback": isRefactoringFeedback, |
| 880 "change": isSourceChange, | 807 "change": isSourceChange, |
| 881 "potentialEdits": isListOf(isString) | 808 "potentialEdits": isListOf(isString) |
| 882 })); | 809 })); |
| 883 | 810 |
| 884 /** | 811 /** |
| 885 * edit.sortMembers params | 812 * edit.sortMembers params |
| 886 * | 813 * |
| 887 * { | 814 * { |
| 888 * "file": FilePath | 815 * "file": FilePath |
| 889 * } | 816 * } |
| 890 */ | 817 */ |
| 891 final Matcher isEditSortMembersParams = new LazyMatcher(() => new MatchesJsonObj
ect( | 818 final Matcher isEditSortMembersParams = new LazyMatcher(() => |
| 892 "edit.sortMembers params", { | 819 new MatchesJsonObject("edit.sortMembers params", {"file": isFilePath})); |
| 893 "file": isFilePath | |
| 894 })); | |
| 895 | 820 |
| 896 /** | 821 /** |
| 897 * edit.sortMembers result | 822 * edit.sortMembers result |
| 898 * | 823 * |
| 899 * { | 824 * { |
| 900 * "edit": SourceFileEdit | 825 * "edit": SourceFileEdit |
| 901 * } | 826 * } |
| 902 */ | 827 */ |
| 903 final Matcher isEditSortMembersResult = new LazyMatcher(() => new MatchesJsonObj
ect( | 828 final Matcher isEditSortMembersResult = new LazyMatcher(() => |
| 904 "edit.sortMembers result", { | 829 new MatchesJsonObject( |
| 905 "edit": isSourceFileEdit | 830 "edit.sortMembers result", {"edit": isSourceFileEdit})); |
| 906 })); | |
| 907 | 831 |
| 908 /** | 832 /** |
| 909 * edit.organizeDirectives params | 833 * edit.organizeDirectives params |
| 910 * | 834 * |
| 911 * { | 835 * { |
| 912 * "file": FilePath | 836 * "file": FilePath |
| 913 * } | 837 * } |
| 914 */ | 838 */ |
| 915 final Matcher isEditOrganizeDirectivesParams = new LazyMatcher(() => new Matches
JsonObject( | 839 final Matcher isEditOrganizeDirectivesParams = new LazyMatcher(() => |
| 916 "edit.organizeDirectives params", { | 840 new MatchesJsonObject( |
| 917 "file": isFilePath | 841 "edit.organizeDirectives params", {"file": isFilePath})); |
| 918 })); | |
| 919 | 842 |
| 920 /** | 843 /** |
| 921 * edit.organizeDirectives result | 844 * edit.organizeDirectives result |
| 922 * | 845 * |
| 923 * { | 846 * { |
| 924 * "edit": SourceFileEdit | 847 * "edit": SourceFileEdit |
| 925 * } | 848 * } |
| 926 */ | 849 */ |
| 927 final Matcher isEditOrganizeDirectivesResult = new LazyMatcher(() => new Matches
JsonObject( | 850 final Matcher isEditOrganizeDirectivesResult = new LazyMatcher(() => |
| 928 "edit.organizeDirectives result", { | 851 new MatchesJsonObject( |
| 929 "edit": isSourceFileEdit | 852 "edit.organizeDirectives result", {"edit": isSourceFileEdit})); |
| 930 })); | |
| 931 | 853 |
| 932 /** | 854 /** |
| 933 * execution.createContext params | 855 * execution.createContext params |
| 934 * | 856 * |
| 935 * { | 857 * { |
| 936 * "contextRoot": FilePath | 858 * "contextRoot": FilePath |
| 937 * } | 859 * } |
| 938 */ | 860 */ |
| 939 final Matcher isExecutionCreateContextParams = new LazyMatcher(() => new Matches
JsonObject( | 861 final Matcher isExecutionCreateContextParams = new LazyMatcher(() => |
| 940 "execution.createContext params", { | 862 new MatchesJsonObject( |
| 941 "contextRoot": isFilePath | 863 "execution.createContext params", {"contextRoot": isFilePath})); |
| 942 })); | |
| 943 | 864 |
| 944 /** | 865 /** |
| 945 * execution.createContext result | 866 * execution.createContext result |
| 946 * | 867 * |
| 947 * { | 868 * { |
| 948 * "id": ExecutionContextId | 869 * "id": ExecutionContextId |
| 949 * } | 870 * } |
| 950 */ | 871 */ |
| 951 final Matcher isExecutionCreateContextResult = new LazyMatcher(() => new Matches
JsonObject( | 872 final Matcher isExecutionCreateContextResult = new LazyMatcher(() => |
| 952 "execution.createContext result", { | 873 new MatchesJsonObject( |
| 953 "id": isExecutionContextId | 874 "execution.createContext result", {"id": isExecutionContextId})); |
| 954 })); | |
| 955 | 875 |
| 956 /** | 876 /** |
| 957 * execution.deleteContext params | 877 * execution.deleteContext params |
| 958 * | 878 * |
| 959 * { | 879 * { |
| 960 * "id": ExecutionContextId | 880 * "id": ExecutionContextId |
| 961 * } | 881 * } |
| 962 */ | 882 */ |
| 963 final Matcher isExecutionDeleteContextParams = new LazyMatcher(() => new Matches
JsonObject( | 883 final Matcher isExecutionDeleteContextParams = new LazyMatcher(() => |
| 964 "execution.deleteContext params", { | 884 new MatchesJsonObject( |
| 965 "id": isExecutionContextId | 885 "execution.deleteContext params", {"id": isExecutionContextId})); |
| 966 })); | |
| 967 | 886 |
| 968 /** | 887 /** |
| 969 * execution.deleteContext result | 888 * execution.deleteContext result |
| 970 */ | 889 */ |
| 971 final Matcher isExecutionDeleteContextResult = isNull; | 890 final Matcher isExecutionDeleteContextResult = isNull; |
| 972 | 891 |
| 973 /** | 892 /** |
| 974 * execution.mapUri params | 893 * execution.mapUri params |
| 975 * | 894 * |
| 976 * { | 895 * { |
| 977 * "id": ExecutionContextId | 896 * "id": ExecutionContextId |
| 978 * "file": optional FilePath | 897 * "file": optional FilePath |
| 979 * "uri": optional String | 898 * "uri": optional String |
| 980 * } | 899 * } |
| 981 */ | 900 */ |
| 982 final Matcher isExecutionMapUriParams = new LazyMatcher(() => new MatchesJsonObj
ect( | 901 final Matcher isExecutionMapUriParams = new LazyMatcher(() => |
| 983 "execution.mapUri params", { | 902 new MatchesJsonObject( |
| 984 "id": isExecutionContextId | 903 "execution.mapUri params", {"id": isExecutionContextId}, |
| 985 }, optionalFields: { | 904 optionalFields: {"file": isFilePath, "uri": isString})); |
| 986 "file": isFilePath, | |
| 987 "uri": isString | |
| 988 })); | |
| 989 | 905 |
| 990 /** | 906 /** |
| 991 * execution.mapUri result | 907 * execution.mapUri result |
| 992 * | 908 * |
| 993 * { | 909 * { |
| 994 * "file": optional FilePath | 910 * "file": optional FilePath |
| 995 * "uri": optional String | 911 * "uri": optional String |
| 996 * } | 912 * } |
| 997 */ | 913 */ |
| 998 final Matcher isExecutionMapUriResult = new LazyMatcher(() => new MatchesJsonObj
ect( | 914 final Matcher isExecutionMapUriResult = new LazyMatcher(() => |
| 999 "execution.mapUri result", null, optionalFields: { | 915 new MatchesJsonObject("execution.mapUri result", null, |
| 1000 "file": isFilePath, | 916 optionalFields: {"file": isFilePath, "uri": isString})); |
| 1001 "uri": isString | |
| 1002 })); | |
| 1003 | 917 |
| 1004 /** | 918 /** |
| 1005 * execution.setSubscriptions params | 919 * execution.setSubscriptions params |
| 1006 * | 920 * |
| 1007 * { | 921 * { |
| 1008 * "subscriptions": List<ExecutionService> | 922 * "subscriptions": List<ExecutionService> |
| 1009 * } | 923 * } |
| 1010 */ | 924 */ |
| 1011 final Matcher isExecutionSetSubscriptionsParams = new LazyMatcher(() => new Matc
hesJsonObject( | 925 final Matcher isExecutionSetSubscriptionsParams = new LazyMatcher(() => |
| 1012 "execution.setSubscriptions params", { | 926 new MatchesJsonObject("execution.setSubscriptions params", |
| 1013 "subscriptions": isListOf(isExecutionService) | 927 {"subscriptions": isListOf(isExecutionService)})); |
| 1014 })); | |
| 1015 | 928 |
| 1016 /** | 929 /** |
| 1017 * execution.setSubscriptions result | 930 * execution.setSubscriptions result |
| 1018 */ | 931 */ |
| 1019 final Matcher isExecutionSetSubscriptionsResult = isNull; | 932 final Matcher isExecutionSetSubscriptionsResult = isNull; |
| 1020 | 933 |
| 1021 /** | 934 /** |
| 1022 * execution.launchData params | 935 * execution.launchData params |
| 1023 * | 936 * |
| 1024 * { | 937 * { |
| 1025 * "file": FilePath | 938 * "file": FilePath |
| 1026 * "kind": optional ExecutableKind | 939 * "kind": optional ExecutableKind |
| 1027 * "referencedFiles": optional List<FilePath> | 940 * "referencedFiles": optional List<FilePath> |
| 1028 * } | 941 * } |
| 1029 */ | 942 */ |
| 1030 final Matcher isExecutionLaunchDataParams = new LazyMatcher(() => new MatchesJso
nObject( | 943 final Matcher isExecutionLaunchDataParams = new LazyMatcher(() => |
| 1031 "execution.launchData params", { | 944 new MatchesJsonObject("execution.launchData params", { |
| 1032 "file": isFilePath | 945 "file": isFilePath |
| 1033 }, optionalFields: { | 946 }, optionalFields: { |
| 1034 "kind": isExecutableKind, | 947 "kind": isExecutableKind, |
| 1035 "referencedFiles": isListOf(isFilePath) | 948 "referencedFiles": isListOf(isFilePath) |
| 1036 })); | 949 })); |
| 1037 | 950 |
| 1038 /** | 951 /** |
| 1039 * diagnostic.getDiagnostics params | 952 * diagnostic.getDiagnostics params |
| 1040 */ | 953 */ |
| 1041 final Matcher isDiagnosticGetDiagnosticsParams = isNull; | 954 final Matcher isDiagnosticGetDiagnosticsParams = isNull; |
| 1042 | 955 |
| 1043 /** | 956 /** |
| 1044 * diagnostic.getDiagnostics result | 957 * diagnostic.getDiagnostics result |
| 1045 * | 958 * |
| 1046 * { | 959 * { |
| 1047 * "contexts": List<ContextData> | 960 * "contexts": List<ContextData> |
| 1048 * } | 961 * } |
| 1049 */ | 962 */ |
| 1050 final Matcher isDiagnosticGetDiagnosticsResult = new LazyMatcher(() => new Match
esJsonObject( | 963 final Matcher isDiagnosticGetDiagnosticsResult = new LazyMatcher(() => |
| 1051 "diagnostic.getDiagnostics result", { | 964 new MatchesJsonObject("diagnostic.getDiagnostics result", |
| 1052 "contexts": isListOf(isContextData) | 965 {"contexts": isListOf(isContextData)})); |
| 1053 })); | |
| 1054 | 966 |
| 1055 /** | 967 /** |
| 1056 * diagnostic.getServerPort params | 968 * diagnostic.getServerPort params |
| 1057 */ | 969 */ |
| 1058 final Matcher isDiagnosticGetServerPortParams = isNull; | 970 final Matcher isDiagnosticGetServerPortParams = isNull; |
| 1059 | 971 |
| 1060 /** | 972 /** |
| 1061 * diagnostic.getServerPort result | 973 * diagnostic.getServerPort result |
| 1062 * | 974 * |
| 1063 * { | 975 * { |
| 1064 * "port": int | 976 * "port": int |
| 1065 * } | 977 * } |
| 1066 */ | 978 */ |
| 1067 final Matcher isDiagnosticGetServerPortResult = new LazyMatcher(() => new Matche
sJsonObject( | 979 final Matcher isDiagnosticGetServerPortResult = new LazyMatcher(() => |
| 1068 "diagnostic.getServerPort result", { | 980 new MatchesJsonObject("diagnostic.getServerPort result", {"port": isInt})); |
| 1069 "port": isInt | |
| 1070 })); | |
| 1071 | 981 |
| 1072 /** | 982 /** |
| 1073 * AddContentOverlay | 983 * AddContentOverlay |
| 1074 * | 984 * |
| 1075 * { | 985 * { |
| 1076 * "type": "add" | 986 * "type": "add" |
| 1077 * "content": String | 987 * "content": String |
| 1078 * } | 988 * } |
| 1079 */ | 989 */ |
| 1080 final Matcher isAddContentOverlay = new LazyMatcher(() => new MatchesJsonObject( | 990 final Matcher isAddContentOverlay = new LazyMatcher(() => new MatchesJsonObject( |
| 1081 "AddContentOverlay", { | 991 "AddContentOverlay", {"type": equals("add"), "content": isString})); |
| 1082 "type": equals("add"), | |
| 1083 "content": isString | |
| 1084 })); | |
| 1085 | 992 |
| 1086 /** | 993 /** |
| 1087 * AnalysisError | 994 * AnalysisError |
| 1088 * | 995 * |
| 1089 * { | 996 * { |
| 1090 * "severity": AnalysisErrorSeverity | 997 * "severity": AnalysisErrorSeverity |
| 1091 * "type": AnalysisErrorType | 998 * "type": AnalysisErrorType |
| 1092 * "location": Location | 999 * "location": Location |
| 1093 * "message": String | 1000 * "message": String |
| 1094 * "correction": optional String | 1001 * "correction": optional String |
| 1095 * "code": String | 1002 * "code": String |
| 1096 * "hasFix": optional bool | 1003 * "hasFix": optional bool |
| 1097 * } | 1004 * } |
| 1098 */ | 1005 */ |
| 1099 final Matcher isAnalysisError = new LazyMatcher(() => new MatchesJsonObject( | 1006 final Matcher isAnalysisError = |
| 1100 "AnalysisError", { | 1007 new LazyMatcher(() => new MatchesJsonObject("AnalysisError", { |
| 1101 "severity": isAnalysisErrorSeverity, | 1008 "severity": isAnalysisErrorSeverity, |
| 1102 "type": isAnalysisErrorType, | 1009 "type": isAnalysisErrorType, |
| 1103 "location": isLocation, | 1010 "location": isLocation, |
| 1104 "message": isString, | 1011 "message": isString, |
| 1105 "code": isString | 1012 "code": isString |
| 1106 }, optionalFields: { | 1013 }, optionalFields: { |
| 1107 "correction": isString, | 1014 "correction": isString, |
| 1108 "hasFix": isBool | 1015 "hasFix": isBool |
| 1109 })); | 1016 })); |
| 1110 | 1017 |
| 1111 /** | 1018 /** |
| 1112 * AnalysisErrorFixes | 1019 * AnalysisErrorFixes |
| 1113 * | 1020 * |
| 1114 * { | 1021 * { |
| 1115 * "error": AnalysisError | 1022 * "error": AnalysisError |
| 1116 * "fixes": List<SourceChange> | 1023 * "fixes": List<SourceChange> |
| 1117 * } | 1024 * } |
| 1118 */ | 1025 */ |
| 1119 final Matcher isAnalysisErrorFixes = new LazyMatcher(() => new MatchesJsonObject
( | 1026 final Matcher isAnalysisErrorFixes = new LazyMatcher(() => |
| 1120 "AnalysisErrorFixes", { | 1027 new MatchesJsonObject("AnalysisErrorFixes", |
| 1121 "error": isAnalysisError, | 1028 {"error": isAnalysisError, "fixes": isListOf(isSourceChange)})); |
| 1122 "fixes": isListOf(isSourceChange) | |
| 1123 })); | |
| 1124 | 1029 |
| 1125 /** | 1030 /** |
| 1126 * AnalysisErrorSeverity | 1031 * AnalysisErrorSeverity |
| 1127 * | 1032 * |
| 1128 * enum { | 1033 * enum { |
| 1129 * INFO | 1034 * INFO |
| 1130 * WARNING | 1035 * WARNING |
| 1131 * ERROR | 1036 * ERROR |
| 1132 * } | 1037 * } |
| 1133 */ | 1038 */ |
| 1134 final Matcher isAnalysisErrorSeverity = new MatchesEnum("AnalysisErrorSeverity",
[ | 1039 final Matcher isAnalysisErrorSeverity = |
| 1135 "INFO", | 1040 new MatchesEnum("AnalysisErrorSeverity", ["INFO", "WARNING", "ERROR"]); |
| 1136 "WARNING", | |
| 1137 "ERROR" | |
| 1138 ]); | |
| 1139 | 1041 |
| 1140 /** | 1042 /** |
| 1141 * AnalysisErrorType | 1043 * AnalysisErrorType |
| 1142 * | 1044 * |
| 1143 * enum { | 1045 * enum { |
| 1144 * CHECKED_MODE_COMPILE_TIME_ERROR | 1046 * CHECKED_MODE_COMPILE_TIME_ERROR |
| 1145 * COMPILE_TIME_ERROR | 1047 * COMPILE_TIME_ERROR |
| 1146 * HINT | 1048 * HINT |
| 1147 * LINT | 1049 * LINT |
| 1148 * STATIC_TYPE_WARNING | 1050 * STATIC_TYPE_WARNING |
| (...skipping 20 matching lines...) Expand all Loading... |
| 1169 * "enableAsync": optional bool | 1071 * "enableAsync": optional bool |
| 1170 * "enableDeferredLoading": optional bool | 1072 * "enableDeferredLoading": optional bool |
| 1171 * "enableEnums": optional bool | 1073 * "enableEnums": optional bool |
| 1172 * "enableNullAwareOperators": optional bool | 1074 * "enableNullAwareOperators": optional bool |
| 1173 * "enableSuperMixins": optional bool | 1075 * "enableSuperMixins": optional bool |
| 1174 * "generateDart2jsHints": optional bool | 1076 * "generateDart2jsHints": optional bool |
| 1175 * "generateHints": optional bool | 1077 * "generateHints": optional bool |
| 1176 * "generateLints": optional bool | 1078 * "generateLints": optional bool |
| 1177 * } | 1079 * } |
| 1178 */ | 1080 */ |
| 1179 final Matcher isAnalysisOptions = new LazyMatcher(() => new MatchesJsonObject( | 1081 final Matcher isAnalysisOptions = new LazyMatcher( |
| 1180 "AnalysisOptions", null, optionalFields: { | 1082 () => new MatchesJsonObject("AnalysisOptions", null, optionalFields: { |
| 1181 "enableAsync": isBool, | 1083 "enableAsync": isBool, |
| 1182 "enableDeferredLoading": isBool, | 1084 "enableDeferredLoading": isBool, |
| 1183 "enableEnums": isBool, | 1085 "enableEnums": isBool, |
| 1184 "enableNullAwareOperators": isBool, | 1086 "enableNullAwareOperators": isBool, |
| 1185 "enableSuperMixins": isBool, | 1087 "enableSuperMixins": isBool, |
| 1186 "generateDart2jsHints": isBool, | 1088 "generateDart2jsHints": isBool, |
| 1187 "generateHints": isBool, | 1089 "generateHints": isBool, |
| 1188 "generateLints": isBool | 1090 "generateLints": isBool |
| 1189 })); | 1091 })); |
| 1190 | 1092 |
| 1191 /** | 1093 /** |
| 1192 * AnalysisService | 1094 * AnalysisService |
| 1193 * | 1095 * |
| 1194 * enum { | 1096 * enum { |
| 1195 * FOLDING | 1097 * FOLDING |
| 1196 * HIGHLIGHTS | 1098 * HIGHLIGHTS |
| 1197 * IMPLEMENTED | 1099 * IMPLEMENTED |
| 1198 * INVALIDATE | 1100 * INVALIDATE |
| 1199 * NAVIGATION | 1101 * NAVIGATION |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1215 | 1117 |
| 1216 /** | 1118 /** |
| 1217 * AnalysisStatus | 1119 * AnalysisStatus |
| 1218 * | 1120 * |
| 1219 * { | 1121 * { |
| 1220 * "isAnalyzing": bool | 1122 * "isAnalyzing": bool |
| 1221 * "analysisTarget": optional String | 1123 * "analysisTarget": optional String |
| 1222 * } | 1124 * } |
| 1223 */ | 1125 */ |
| 1224 final Matcher isAnalysisStatus = new LazyMatcher(() => new MatchesJsonObject( | 1126 final Matcher isAnalysisStatus = new LazyMatcher(() => new MatchesJsonObject( |
| 1225 "AnalysisStatus", { | 1127 "AnalysisStatus", {"isAnalyzing": isBool}, |
| 1226 "isAnalyzing": isBool | 1128 optionalFields: {"analysisTarget": isString})); |
| 1227 }, optionalFields: { | |
| 1228 "analysisTarget": isString | |
| 1229 })); | |
| 1230 | 1129 |
| 1231 /** | 1130 /** |
| 1232 * ChangeContentOverlay | 1131 * ChangeContentOverlay |
| 1233 * | 1132 * |
| 1234 * { | 1133 * { |
| 1235 * "type": "change" | 1134 * "type": "change" |
| 1236 * "edits": List<SourceEdit> | 1135 * "edits": List<SourceEdit> |
| 1237 * } | 1136 * } |
| 1238 */ | 1137 */ |
| 1239 final Matcher isChangeContentOverlay = new LazyMatcher(() => new MatchesJsonObje
ct( | 1138 final Matcher isChangeContentOverlay = new LazyMatcher(() => |
| 1240 "ChangeContentOverlay", { | 1139 new MatchesJsonObject("ChangeContentOverlay", |
| 1241 "type": equals("change"), | 1140 {"type": equals("change"), "edits": isListOf(isSourceEdit)})); |
| 1242 "edits": isListOf(isSourceEdit) | |
| 1243 })); | |
| 1244 | 1141 |
| 1245 /** | 1142 /** |
| 1246 * CompletionId | 1143 * CompletionId |
| 1247 * | 1144 * |
| 1248 * String | 1145 * String |
| 1249 */ | 1146 */ |
| 1250 final Matcher isCompletionId = isString; | 1147 final Matcher isCompletionId = isString; |
| 1251 | 1148 |
| 1252 /** | 1149 /** |
| 1253 * CompletionSuggestion | 1150 * CompletionSuggestion |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1269 * "returnType": optional String | 1166 * "returnType": optional String |
| 1270 * "parameterNames": optional List<String> | 1167 * "parameterNames": optional List<String> |
| 1271 * "parameterTypes": optional List<String> | 1168 * "parameterTypes": optional List<String> |
| 1272 * "requiredParameterCount": optional int | 1169 * "requiredParameterCount": optional int |
| 1273 * "hasNamedParameters": optional bool | 1170 * "hasNamedParameters": optional bool |
| 1274 * "parameterName": optional String | 1171 * "parameterName": optional String |
| 1275 * "parameterType": optional String | 1172 * "parameterType": optional String |
| 1276 * "importUri": optional String | 1173 * "importUri": optional String |
| 1277 * } | 1174 * } |
| 1278 */ | 1175 */ |
| 1279 final Matcher isCompletionSuggestion = new LazyMatcher(() => new MatchesJsonObje
ct( | 1176 final Matcher isCompletionSuggestion = |
| 1280 "CompletionSuggestion", { | 1177 new LazyMatcher(() => new MatchesJsonObject("CompletionSuggestion", { |
| 1281 "kind": isCompletionSuggestionKind, | 1178 "kind": isCompletionSuggestionKind, |
| 1282 "relevance": isInt, | 1179 "relevance": isInt, |
| 1283 "completion": isString, | 1180 "completion": isString, |
| 1284 "selectionOffset": isInt, | 1181 "selectionOffset": isInt, |
| 1285 "selectionLength": isInt, | 1182 "selectionLength": isInt, |
| 1286 "isDeprecated": isBool, | 1183 "isDeprecated": isBool, |
| 1287 "isPotential": isBool | 1184 "isPotential": isBool |
| 1288 }, optionalFields: { | 1185 }, optionalFields: { |
| 1289 "docSummary": isString, | 1186 "docSummary": isString, |
| 1290 "docComplete": isString, | 1187 "docComplete": isString, |
| 1291 "declaringType": isString, | 1188 "declaringType": isString, |
| 1292 "defaultArgumentListString": isString, | 1189 "defaultArgumentListString": isString, |
| 1293 "defaultArgumentListTextRanges": isListOf(isInt), | 1190 "defaultArgumentListTextRanges": isListOf(isInt), |
| 1294 "element": isElement, | 1191 "element": isElement, |
| 1295 "returnType": isString, | 1192 "returnType": isString, |
| 1296 "parameterNames": isListOf(isString), | 1193 "parameterNames": isListOf(isString), |
| 1297 "parameterTypes": isListOf(isString), | 1194 "parameterTypes": isListOf(isString), |
| 1298 "requiredParameterCount": isInt, | 1195 "requiredParameterCount": isInt, |
| 1299 "hasNamedParameters": isBool, | 1196 "hasNamedParameters": isBool, |
| 1300 "parameterName": isString, | 1197 "parameterName": isString, |
| 1301 "parameterType": isString, | 1198 "parameterType": isString, |
| 1302 "importUri": isString | 1199 "importUri": isString |
| 1303 })); | 1200 })); |
| 1304 | 1201 |
| 1305 /** | 1202 /** |
| 1306 * CompletionSuggestionKind | 1203 * CompletionSuggestionKind |
| 1307 * | 1204 * |
| 1308 * enum { | 1205 * enum { |
| 1309 * ARGUMENT_LIST | 1206 * ARGUMENT_LIST |
| 1310 * IMPORT | 1207 * IMPORT |
| 1311 * IDENTIFIER | 1208 * IDENTIFIER |
| 1312 * INVOCATION | 1209 * INVOCATION |
| 1313 * KEYWORD | 1210 * KEYWORD |
| 1314 * NAMED_ARGUMENT | 1211 * NAMED_ARGUMENT |
| 1315 * OPTIONAL_ARGUMENT | 1212 * OPTIONAL_ARGUMENT |
| 1316 * PARAMETER | 1213 * PARAMETER |
| 1317 * } | 1214 * } |
| 1318 */ | 1215 */ |
| 1319 final Matcher isCompletionSuggestionKind = new MatchesEnum("CompletionSuggestion
Kind", [ | 1216 final Matcher isCompletionSuggestionKind = |
| 1217 new MatchesEnum("CompletionSuggestionKind", [ |
| 1320 "ARGUMENT_LIST", | 1218 "ARGUMENT_LIST", |
| 1321 "IMPORT", | 1219 "IMPORT", |
| 1322 "IDENTIFIER", | 1220 "IDENTIFIER", |
| 1323 "INVOCATION", | 1221 "INVOCATION", |
| 1324 "KEYWORD", | 1222 "KEYWORD", |
| 1325 "NAMED_ARGUMENT", | 1223 "NAMED_ARGUMENT", |
| 1326 "OPTIONAL_ARGUMENT", | 1224 "OPTIONAL_ARGUMENT", |
| 1327 "PARAMETER" | 1225 "PARAMETER" |
| 1328 ]); | 1226 ]); |
| 1329 | 1227 |
| 1330 /** | 1228 /** |
| 1331 * ContextData | 1229 * ContextData |
| 1332 * | 1230 * |
| 1333 * { | 1231 * { |
| 1334 * "name": String | 1232 * "name": String |
| 1335 * "explicitFileCount": int | 1233 * "explicitFileCount": int |
| 1336 * "implicitFileCount": int | 1234 * "implicitFileCount": int |
| 1337 * "workItemQueueLength": int | 1235 * "workItemQueueLength": int |
| 1338 * "cacheEntryExceptions": List<String> | 1236 * "cacheEntryExceptions": List<String> |
| 1339 * } | 1237 * } |
| 1340 */ | 1238 */ |
| 1341 final Matcher isContextData = new LazyMatcher(() => new MatchesJsonObject( | 1239 final Matcher isContextData = |
| 1342 "ContextData", { | 1240 new LazyMatcher(() => new MatchesJsonObject("ContextData", { |
| 1343 "name": isString, | 1241 "name": isString, |
| 1344 "explicitFileCount": isInt, | 1242 "explicitFileCount": isInt, |
| 1345 "implicitFileCount": isInt, | 1243 "implicitFileCount": isInt, |
| 1346 "workItemQueueLength": isInt, | 1244 "workItemQueueLength": isInt, |
| 1347 "cacheEntryExceptions": isListOf(isString) | 1245 "cacheEntryExceptions": isListOf(isString) |
| 1348 })); | 1246 })); |
| 1349 | 1247 |
| 1350 /** | 1248 /** |
| 1351 * Element | 1249 * Element |
| 1352 * | 1250 * |
| 1353 * { | 1251 * { |
| 1354 * "kind": ElementKind | 1252 * "kind": ElementKind |
| 1355 * "name": String | 1253 * "name": String |
| 1356 * "location": optional Location | 1254 * "location": optional Location |
| 1357 * "flags": int | 1255 * "flags": int |
| 1358 * "parameters": optional String | 1256 * "parameters": optional String |
| 1359 * "returnType": optional String | 1257 * "returnType": optional String |
| 1360 * "typeParameters": optional String | 1258 * "typeParameters": optional String |
| 1361 * } | 1259 * } |
| 1362 */ | 1260 */ |
| 1363 final Matcher isElement = new LazyMatcher(() => new MatchesJsonObject( | 1261 final Matcher isElement = |
| 1364 "Element", { | 1262 new LazyMatcher(() => new MatchesJsonObject("Element", { |
| 1365 "kind": isElementKind, | 1263 "kind": isElementKind, |
| 1366 "name": isString, | 1264 "name": isString, |
| 1367 "flags": isInt | 1265 "flags": isInt |
| 1368 }, optionalFields: { | 1266 }, optionalFields: { |
| 1369 "location": isLocation, | 1267 "location": isLocation, |
| 1370 "parameters": isString, | 1268 "parameters": isString, |
| 1371 "returnType": isString, | 1269 "returnType": isString, |
| 1372 "typeParameters": isString | 1270 "typeParameters": isString |
| 1373 })); | 1271 })); |
| 1374 | 1272 |
| 1375 /** | 1273 /** |
| 1376 * ElementKind | 1274 * ElementKind |
| 1377 * | 1275 * |
| 1378 * enum { | 1276 * enum { |
| 1379 * CLASS | 1277 * CLASS |
| 1380 * CLASS_TYPE_ALIAS | 1278 * CLASS_TYPE_ALIAS |
| 1381 * COMPILATION_UNIT | 1279 * COMPILATION_UNIT |
| 1382 * CONSTRUCTOR | 1280 * CONSTRUCTOR |
| 1383 * ENUM | 1281 * ENUM |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1429 | 1327 |
| 1430 /** | 1328 /** |
| 1431 * ExecutableFile | 1329 * ExecutableFile |
| 1432 * | 1330 * |
| 1433 * { | 1331 * { |
| 1434 * "file": FilePath | 1332 * "file": FilePath |
| 1435 * "kind": ExecutableKind | 1333 * "kind": ExecutableKind |
| 1436 * } | 1334 * } |
| 1437 */ | 1335 */ |
| 1438 final Matcher isExecutableFile = new LazyMatcher(() => new MatchesJsonObject( | 1336 final Matcher isExecutableFile = new LazyMatcher(() => new MatchesJsonObject( |
| 1439 "ExecutableFile", { | 1337 "ExecutableFile", {"file": isFilePath, "kind": isExecutableKind})); |
| 1440 "file": isFilePath, | |
| 1441 "kind": isExecutableKind | |
| 1442 })); | |
| 1443 | 1338 |
| 1444 /** | 1339 /** |
| 1445 * ExecutableKind | 1340 * ExecutableKind |
| 1446 * | 1341 * |
| 1447 * enum { | 1342 * enum { |
| 1448 * CLIENT | 1343 * CLIENT |
| 1449 * EITHER | 1344 * EITHER |
| 1450 * NOT_EXECUTABLE | 1345 * NOT_EXECUTABLE |
| 1451 * SERVER | 1346 * SERVER |
| 1452 * } | 1347 * } |
| 1453 */ | 1348 */ |
| 1454 final Matcher isExecutableKind = new MatchesEnum("ExecutableKind", [ | 1349 final Matcher isExecutableKind = new MatchesEnum( |
| 1455 "CLIENT", | 1350 "ExecutableKind", ["CLIENT", "EITHER", "NOT_EXECUTABLE", "SERVER"]); |
| 1456 "EITHER", | |
| 1457 "NOT_EXECUTABLE", | |
| 1458 "SERVER" | |
| 1459 ]); | |
| 1460 | 1351 |
| 1461 /** | 1352 /** |
| 1462 * ExecutionContextId | 1353 * ExecutionContextId |
| 1463 * | 1354 * |
| 1464 * String | 1355 * String |
| 1465 */ | 1356 */ |
| 1466 final Matcher isExecutionContextId = isString; | 1357 final Matcher isExecutionContextId = isString; |
| 1467 | 1358 |
| 1468 /** | 1359 /** |
| 1469 * ExecutionService | 1360 * ExecutionService |
| 1470 * | 1361 * |
| 1471 * enum { | 1362 * enum { |
| 1472 * LAUNCH_DATA | 1363 * LAUNCH_DATA |
| 1473 * } | 1364 * } |
| 1474 */ | 1365 */ |
| 1475 final Matcher isExecutionService = new MatchesEnum("ExecutionService", [ | 1366 final Matcher isExecutionService = |
| 1476 "LAUNCH_DATA" | 1367 new MatchesEnum("ExecutionService", ["LAUNCH_DATA"]); |
| 1477 ]); | |
| 1478 | 1368 |
| 1479 /** | 1369 /** |
| 1480 * FileKind | 1370 * FileKind |
| 1481 * | 1371 * |
| 1482 * enum { | 1372 * enum { |
| 1483 * LIBRARY | 1373 * LIBRARY |
| 1484 * PART | 1374 * PART |
| 1485 * } | 1375 * } |
| 1486 */ | 1376 */ |
| 1487 final Matcher isFileKind = new MatchesEnum("FileKind", [ | 1377 final Matcher isFileKind = new MatchesEnum("FileKind", ["LIBRARY", "PART"]); |
| 1488 "LIBRARY", | |
| 1489 "PART" | |
| 1490 ]); | |
| 1491 | 1378 |
| 1492 /** | 1379 /** |
| 1493 * FilePath | 1380 * FilePath |
| 1494 * | 1381 * |
| 1495 * String | 1382 * String |
| 1496 */ | 1383 */ |
| 1497 final Matcher isFilePath = isString; | 1384 final Matcher isFilePath = isString; |
| 1498 | 1385 |
| 1499 /** | 1386 /** |
| 1500 * FoldingKind | 1387 * FoldingKind |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1518 /** | 1405 /** |
| 1519 * FoldingRegion | 1406 * FoldingRegion |
| 1520 * | 1407 * |
| 1521 * { | 1408 * { |
| 1522 * "kind": FoldingKind | 1409 * "kind": FoldingKind |
| 1523 * "offset": int | 1410 * "offset": int |
| 1524 * "length": int | 1411 * "length": int |
| 1525 * } | 1412 * } |
| 1526 */ | 1413 */ |
| 1527 final Matcher isFoldingRegion = new LazyMatcher(() => new MatchesJsonObject( | 1414 final Matcher isFoldingRegion = new LazyMatcher(() => new MatchesJsonObject( |
| 1528 "FoldingRegion", { | 1415 "FoldingRegion", |
| 1529 "kind": isFoldingKind, | 1416 {"kind": isFoldingKind, "offset": isInt, "length": isInt})); |
| 1530 "offset": isInt, | |
| 1531 "length": isInt | |
| 1532 })); | |
| 1533 | 1417 |
| 1534 /** | 1418 /** |
| 1535 * GeneralAnalysisService | 1419 * GeneralAnalysisService |
| 1536 * | 1420 * |
| 1537 * enum { | 1421 * enum { |
| 1538 * ANALYZED_FILES | 1422 * ANALYZED_FILES |
| 1539 * } | 1423 * } |
| 1540 */ | 1424 */ |
| 1541 final Matcher isGeneralAnalysisService = new MatchesEnum("GeneralAnalysisService
", [ | 1425 final Matcher isGeneralAnalysisService = |
| 1542 "ANALYZED_FILES" | 1426 new MatchesEnum("GeneralAnalysisService", ["ANALYZED_FILES"]); |
| 1543 ]); | |
| 1544 | 1427 |
| 1545 /** | 1428 /** |
| 1546 * HighlightRegion | 1429 * HighlightRegion |
| 1547 * | 1430 * |
| 1548 * { | 1431 * { |
| 1549 * "type": HighlightRegionType | 1432 * "type": HighlightRegionType |
| 1550 * "offset": int | 1433 * "offset": int |
| 1551 * "length": int | 1434 * "length": int |
| 1552 * } | 1435 * } |
| 1553 */ | 1436 */ |
| 1554 final Matcher isHighlightRegion = new LazyMatcher(() => new MatchesJsonObject( | 1437 final Matcher isHighlightRegion = new LazyMatcher(() => new MatchesJsonObject( |
| 1555 "HighlightRegion", { | 1438 "HighlightRegion", |
| 1556 "type": isHighlightRegionType, | 1439 {"type": isHighlightRegionType, "offset": isInt, "length": isInt})); |
| 1557 "offset": isInt, | |
| 1558 "length": isInt | |
| 1559 })); | |
| 1560 | 1440 |
| 1561 /** | 1441 /** |
| 1562 * HighlightRegionType | 1442 * HighlightRegionType |
| 1563 * | 1443 * |
| 1564 * enum { | 1444 * enum { |
| 1565 * ANNOTATION | 1445 * ANNOTATION |
| 1566 * BUILT_IN | 1446 * BUILT_IN |
| 1567 * CLASS | 1447 * CLASS |
| 1568 * COMMENT_BLOCK | 1448 * COMMENT_BLOCK |
| 1569 * COMMENT_DOCUMENTATION | 1449 * COMMENT_DOCUMENTATION |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1724 * "containingClassDescription": optional String | 1604 * "containingClassDescription": optional String |
| 1725 * "dartdoc": optional String | 1605 * "dartdoc": optional String |
| 1726 * "elementDescription": optional String | 1606 * "elementDescription": optional String |
| 1727 * "elementKind": optional String | 1607 * "elementKind": optional String |
| 1728 * "isDeprecated": optional bool | 1608 * "isDeprecated": optional bool |
| 1729 * "parameter": optional String | 1609 * "parameter": optional String |
| 1730 * "propagatedType": optional String | 1610 * "propagatedType": optional String |
| 1731 * "staticType": optional String | 1611 * "staticType": optional String |
| 1732 * } | 1612 * } |
| 1733 */ | 1613 */ |
| 1734 final Matcher isHoverInformation = new LazyMatcher(() => new MatchesJsonObject( | 1614 final Matcher isHoverInformation = |
| 1735 "HoverInformation", { | 1615 new LazyMatcher(() => new MatchesJsonObject("HoverInformation", { |
| 1736 "offset": isInt, | 1616 "offset": isInt, |
| 1737 "length": isInt | 1617 "length": isInt |
| 1738 }, optionalFields: { | 1618 }, optionalFields: { |
| 1739 "containingLibraryPath": isString, | 1619 "containingLibraryPath": isString, |
| 1740 "containingLibraryName": isString, | 1620 "containingLibraryName": isString, |
| 1741 "containingClassDescription": isString, | 1621 "containingClassDescription": isString, |
| 1742 "dartdoc": isString, | 1622 "dartdoc": isString, |
| 1743 "elementDescription": isString, | 1623 "elementDescription": isString, |
| 1744 "elementKind": isString, | 1624 "elementKind": isString, |
| 1745 "isDeprecated": isBool, | 1625 "isDeprecated": isBool, |
| 1746 "parameter": isString, | 1626 "parameter": isString, |
| 1747 "propagatedType": isString, | 1627 "propagatedType": isString, |
| 1748 "staticType": isString | 1628 "staticType": isString |
| 1749 })); | 1629 })); |
| 1750 | 1630 |
| 1751 /** | 1631 /** |
| 1752 * ImplementedClass | 1632 * ImplementedClass |
| 1753 * | 1633 * |
| 1754 * { | 1634 * { |
| 1755 * "offset": int | 1635 * "offset": int |
| 1756 * "length": int | 1636 * "length": int |
| 1757 * } | 1637 * } |
| 1758 */ | 1638 */ |
| 1759 final Matcher isImplementedClass = new LazyMatcher(() => new MatchesJsonObject( | 1639 final Matcher isImplementedClass = new LazyMatcher(() => new MatchesJsonObject( |
| 1760 "ImplementedClass", { | 1640 "ImplementedClass", {"offset": isInt, "length": isInt})); |
| 1761 "offset": isInt, | |
| 1762 "length": isInt | |
| 1763 })); | |
| 1764 | 1641 |
| 1765 /** | 1642 /** |
| 1766 * ImplementedMember | 1643 * ImplementedMember |
| 1767 * | 1644 * |
| 1768 * { | 1645 * { |
| 1769 * "offset": int | 1646 * "offset": int |
| 1770 * "length": int | 1647 * "length": int |
| 1771 * } | 1648 * } |
| 1772 */ | 1649 */ |
| 1773 final Matcher isImplementedMember = new LazyMatcher(() => new MatchesJsonObject( | 1650 final Matcher isImplementedMember = new LazyMatcher(() => new MatchesJsonObject( |
| 1774 "ImplementedMember", { | 1651 "ImplementedMember", {"offset": isInt, "length": isInt})); |
| 1775 "offset": isInt, | |
| 1776 "length": isInt | |
| 1777 })); | |
| 1778 | 1652 |
| 1779 /** | 1653 /** |
| 1780 * LinkedEditGroup | 1654 * LinkedEditGroup |
| 1781 * | 1655 * |
| 1782 * { | 1656 * { |
| 1783 * "positions": List<Position> | 1657 * "positions": List<Position> |
| 1784 * "length": int | 1658 * "length": int |
| 1785 * "suggestions": List<LinkedEditSuggestion> | 1659 * "suggestions": List<LinkedEditSuggestion> |
| 1786 * } | 1660 * } |
| 1787 */ | 1661 */ |
| 1788 final Matcher isLinkedEditGroup = new LazyMatcher(() => new MatchesJsonObject( | 1662 final Matcher isLinkedEditGroup = |
| 1789 "LinkedEditGroup", { | 1663 new LazyMatcher(() => new MatchesJsonObject("LinkedEditGroup", { |
| 1790 "positions": isListOf(isPosition), | 1664 "positions": isListOf(isPosition), |
| 1791 "length": isInt, | 1665 "length": isInt, |
| 1792 "suggestions": isListOf(isLinkedEditSuggestion) | 1666 "suggestions": isListOf(isLinkedEditSuggestion) |
| 1793 })); | 1667 })); |
| 1794 | 1668 |
| 1795 /** | 1669 /** |
| 1796 * LinkedEditSuggestion | 1670 * LinkedEditSuggestion |
| 1797 * | 1671 * |
| 1798 * { | 1672 * { |
| 1799 * "value": String | 1673 * "value": String |
| 1800 * "kind": LinkedEditSuggestionKind | 1674 * "kind": LinkedEditSuggestionKind |
| 1801 * } | 1675 * } |
| 1802 */ | 1676 */ |
| 1803 final Matcher isLinkedEditSuggestion = new LazyMatcher(() => new MatchesJsonObje
ct( | 1677 final Matcher isLinkedEditSuggestion = new LazyMatcher(() => |
| 1804 "LinkedEditSuggestion", { | 1678 new MatchesJsonObject("LinkedEditSuggestion", |
| 1805 "value": isString, | 1679 {"value": isString, "kind": isLinkedEditSuggestionKind})); |
| 1806 "kind": isLinkedEditSuggestionKind | |
| 1807 })); | |
| 1808 | 1680 |
| 1809 /** | 1681 /** |
| 1810 * LinkedEditSuggestionKind | 1682 * LinkedEditSuggestionKind |
| 1811 * | 1683 * |
| 1812 * enum { | 1684 * enum { |
| 1813 * METHOD | 1685 * METHOD |
| 1814 * PARAMETER | 1686 * PARAMETER |
| 1815 * TYPE | 1687 * TYPE |
| 1816 * VARIABLE | 1688 * VARIABLE |
| 1817 * } | 1689 * } |
| 1818 */ | 1690 */ |
| 1819 final Matcher isLinkedEditSuggestionKind = new MatchesEnum("LinkedEditSuggestion
Kind", [ | 1691 final Matcher isLinkedEditSuggestionKind = new MatchesEnum( |
| 1820 "METHOD", | 1692 "LinkedEditSuggestionKind", ["METHOD", "PARAMETER", "TYPE", "VARIABLE"]); |
| 1821 "PARAMETER", | |
| 1822 "TYPE", | |
| 1823 "VARIABLE" | |
| 1824 ]); | |
| 1825 | 1693 |
| 1826 /** | 1694 /** |
| 1827 * Location | 1695 * Location |
| 1828 * | 1696 * |
| 1829 * { | 1697 * { |
| 1830 * "file": FilePath | 1698 * "file": FilePath |
| 1831 * "offset": int | 1699 * "offset": int |
| 1832 * "length": int | 1700 * "length": int |
| 1833 * "startLine": int | 1701 * "startLine": int |
| 1834 * "startColumn": int | 1702 * "startColumn": int |
| 1835 * } | 1703 * } |
| 1836 */ | 1704 */ |
| 1837 final Matcher isLocation = new LazyMatcher(() => new MatchesJsonObject( | 1705 final Matcher isLocation = |
| 1838 "Location", { | 1706 new LazyMatcher(() => new MatchesJsonObject("Location", { |
| 1839 "file": isFilePath, | 1707 "file": isFilePath, |
| 1840 "offset": isInt, | 1708 "offset": isInt, |
| 1841 "length": isInt, | 1709 "length": isInt, |
| 1842 "startLine": isInt, | 1710 "startLine": isInt, |
| 1843 "startColumn": isInt | 1711 "startColumn": isInt |
| 1844 })); | 1712 })); |
| 1845 | 1713 |
| 1846 /** | 1714 /** |
| 1847 * NavigationRegion | 1715 * NavigationRegion |
| 1848 * | 1716 * |
| 1849 * { | 1717 * { |
| 1850 * "offset": int | 1718 * "offset": int |
| 1851 * "length": int | 1719 * "length": int |
| 1852 * "targets": List<int> | 1720 * "targets": List<int> |
| 1853 * } | 1721 * } |
| 1854 */ | 1722 */ |
| 1855 final Matcher isNavigationRegion = new LazyMatcher(() => new MatchesJsonObject( | 1723 final Matcher isNavigationRegion = new LazyMatcher(() => new MatchesJsonObject( |
| 1856 "NavigationRegion", { | 1724 "NavigationRegion", |
| 1857 "offset": isInt, | 1725 {"offset": isInt, "length": isInt, "targets": isListOf(isInt)})); |
| 1858 "length": isInt, | |
| 1859 "targets": isListOf(isInt) | |
| 1860 })); | |
| 1861 | 1726 |
| 1862 /** | 1727 /** |
| 1863 * NavigationTarget | 1728 * NavigationTarget |
| 1864 * | 1729 * |
| 1865 * { | 1730 * { |
| 1866 * "kind": ElementKind | 1731 * "kind": ElementKind |
| 1867 * "fileIndex": int | 1732 * "fileIndex": int |
| 1868 * "offset": int | 1733 * "offset": int |
| 1869 * "length": int | 1734 * "length": int |
| 1870 * "startLine": int | 1735 * "startLine": int |
| 1871 * "startColumn": int | 1736 * "startColumn": int |
| 1872 * } | 1737 * } |
| 1873 */ | 1738 */ |
| 1874 final Matcher isNavigationTarget = new LazyMatcher(() => new MatchesJsonObject( | 1739 final Matcher isNavigationTarget = |
| 1875 "NavigationTarget", { | 1740 new LazyMatcher(() => new MatchesJsonObject("NavigationTarget", { |
| 1876 "kind": isElementKind, | 1741 "kind": isElementKind, |
| 1877 "fileIndex": isInt, | 1742 "fileIndex": isInt, |
| 1878 "offset": isInt, | 1743 "offset": isInt, |
| 1879 "length": isInt, | 1744 "length": isInt, |
| 1880 "startLine": isInt, | 1745 "startLine": isInt, |
| 1881 "startColumn": isInt | 1746 "startColumn": isInt |
| 1882 })); | 1747 })); |
| 1883 | 1748 |
| 1884 /** | 1749 /** |
| 1885 * Occurrences | 1750 * Occurrences |
| 1886 * | 1751 * |
| 1887 * { | 1752 * { |
| 1888 * "element": Element | 1753 * "element": Element |
| 1889 * "offsets": List<int> | 1754 * "offsets": List<int> |
| 1890 * "length": int | 1755 * "length": int |
| 1891 * } | 1756 * } |
| 1892 */ | 1757 */ |
| 1893 final Matcher isOccurrences = new LazyMatcher(() => new MatchesJsonObject( | 1758 final Matcher isOccurrences = new LazyMatcher(() => new MatchesJsonObject( |
| 1894 "Occurrences", { | 1759 "Occurrences", |
| 1895 "element": isElement, | 1760 {"element": isElement, "offsets": isListOf(isInt), "length": isInt})); |
| 1896 "offsets": isListOf(isInt), | |
| 1897 "length": isInt | |
| 1898 })); | |
| 1899 | 1761 |
| 1900 /** | 1762 /** |
| 1901 * Outline | 1763 * Outline |
| 1902 * | 1764 * |
| 1903 * { | 1765 * { |
| 1904 * "element": Element | 1766 * "element": Element |
| 1905 * "offset": int | 1767 * "offset": int |
| 1906 * "length": int | 1768 * "length": int |
| 1907 * "children": optional List<Outline> | 1769 * "children": optional List<Outline> |
| 1908 * } | 1770 * } |
| 1909 */ | 1771 */ |
| 1910 final Matcher isOutline = new LazyMatcher(() => new MatchesJsonObject( | 1772 final Matcher isOutline = new LazyMatcher(() => new MatchesJsonObject( |
| 1911 "Outline", { | 1773 "Outline", {"element": isElement, "offset": isInt, "length": isInt}, |
| 1912 "element": isElement, | 1774 optionalFields: {"children": isListOf(isOutline)})); |
| 1913 "offset": isInt, | |
| 1914 "length": isInt | |
| 1915 }, optionalFields: { | |
| 1916 "children": isListOf(isOutline) | |
| 1917 })); | |
| 1918 | 1775 |
| 1919 /** | 1776 /** |
| 1920 * Override | 1777 * Override |
| 1921 * | 1778 * |
| 1922 * { | 1779 * { |
| 1923 * "offset": int | 1780 * "offset": int |
| 1924 * "length": int | 1781 * "length": int |
| 1925 * "superclassMember": optional OverriddenMember | 1782 * "superclassMember": optional OverriddenMember |
| 1926 * "interfaceMembers": optional List<OverriddenMember> | 1783 * "interfaceMembers": optional List<OverriddenMember> |
| 1927 * } | 1784 * } |
| 1928 */ | 1785 */ |
| 1929 final Matcher isOverride = new LazyMatcher(() => new MatchesJsonObject( | 1786 final Matcher isOverride = |
| 1930 "Override", { | 1787 new LazyMatcher(() => new MatchesJsonObject("Override", { |
| 1931 "offset": isInt, | 1788 "offset": isInt, |
| 1932 "length": isInt | 1789 "length": isInt |
| 1933 }, optionalFields: { | 1790 }, optionalFields: { |
| 1934 "superclassMember": isOverriddenMember, | 1791 "superclassMember": isOverriddenMember, |
| 1935 "interfaceMembers": isListOf(isOverriddenMember) | 1792 "interfaceMembers": isListOf(isOverriddenMember) |
| 1936 })); | 1793 })); |
| 1937 | 1794 |
| 1938 /** | 1795 /** |
| 1939 * OverriddenMember | 1796 * OverriddenMember |
| 1940 * | 1797 * |
| 1941 * { | 1798 * { |
| 1942 * "element": Element | 1799 * "element": Element |
| 1943 * "className": String | 1800 * "className": String |
| 1944 * } | 1801 * } |
| 1945 */ | 1802 */ |
| 1946 final Matcher isOverriddenMember = new LazyMatcher(() => new MatchesJsonObject( | 1803 final Matcher isOverriddenMember = new LazyMatcher(() => new MatchesJsonObject( |
| 1947 "OverriddenMember", { | 1804 "OverriddenMember", {"element": isElement, "className": isString})); |
| 1948 "element": isElement, | |
| 1949 "className": isString | |
| 1950 })); | |
| 1951 | 1805 |
| 1952 /** | 1806 /** |
| 1953 * Position | 1807 * Position |
| 1954 * | 1808 * |
| 1955 * { | 1809 * { |
| 1956 * "file": FilePath | 1810 * "file": FilePath |
| 1957 * "offset": int | 1811 * "offset": int |
| 1958 * } | 1812 * } |
| 1959 */ | 1813 */ |
| 1960 final Matcher isPosition = new LazyMatcher(() => new MatchesJsonObject( | 1814 final Matcher isPosition = new LazyMatcher(() => |
| 1961 "Position", { | 1815 new MatchesJsonObject("Position", {"file": isFilePath, "offset": isInt})); |
| 1962 "file": isFilePath, | |
| 1963 "offset": isInt | |
| 1964 })); | |
| 1965 | 1816 |
| 1966 /** | 1817 /** |
| 1967 * PubStatus | 1818 * PubStatus |
| 1968 * | 1819 * |
| 1969 * { | 1820 * { |
| 1970 * "isListingPackageDirs": bool | 1821 * "isListingPackageDirs": bool |
| 1971 * } | 1822 * } |
| 1972 */ | 1823 */ |
| 1973 final Matcher isPubStatus = new LazyMatcher(() => new MatchesJsonObject( | 1824 final Matcher isPubStatus = new LazyMatcher( |
| 1974 "PubStatus", { | 1825 () => new MatchesJsonObject("PubStatus", {"isListingPackageDirs": isBool})); |
| 1975 "isListingPackageDirs": isBool | |
| 1976 })); | |
| 1977 | 1826 |
| 1978 /** | 1827 /** |
| 1979 * RefactoringKind | 1828 * RefactoringKind |
| 1980 * | 1829 * |
| 1981 * enum { | 1830 * enum { |
| 1982 * CONVERT_GETTER_TO_METHOD | 1831 * CONVERT_GETTER_TO_METHOD |
| 1983 * CONVERT_METHOD_TO_GETTER | 1832 * CONVERT_METHOD_TO_GETTER |
| 1984 * EXTRACT_LOCAL_VARIABLE | 1833 * EXTRACT_LOCAL_VARIABLE |
| 1985 * EXTRACT_METHOD | 1834 * EXTRACT_METHOD |
| 1986 * INLINE_LOCAL_VARIABLE | 1835 * INLINE_LOCAL_VARIABLE |
| (...skipping 19 matching lines...) Expand all Loading... |
| 2006 * RefactoringMethodParameter | 1855 * RefactoringMethodParameter |
| 2007 * | 1856 * |
| 2008 * { | 1857 * { |
| 2009 * "id": optional String | 1858 * "id": optional String |
| 2010 * "kind": RefactoringMethodParameterKind | 1859 * "kind": RefactoringMethodParameterKind |
| 2011 * "type": String | 1860 * "type": String |
| 2012 * "name": String | 1861 * "name": String |
| 2013 * "parameters": optional String | 1862 * "parameters": optional String |
| 2014 * } | 1863 * } |
| 2015 */ | 1864 */ |
| 2016 final Matcher isRefactoringMethodParameter = new LazyMatcher(() => new MatchesJs
onObject( | 1865 final Matcher isRefactoringMethodParameter = new LazyMatcher(() => |
| 2017 "RefactoringMethodParameter", { | 1866 new MatchesJsonObject("RefactoringMethodParameter", { |
| 2018 "kind": isRefactoringMethodParameterKind, | 1867 "kind": isRefactoringMethodParameterKind, |
| 2019 "type": isString, | 1868 "type": isString, |
| 2020 "name": isString | 1869 "name": isString |
| 2021 }, optionalFields: { | 1870 }, optionalFields: { |
| 2022 "id": isString, | 1871 "id": isString, |
| 2023 "parameters": isString | 1872 "parameters": isString |
| 2024 })); | 1873 })); |
| 2025 | 1874 |
| 2026 /** | 1875 /** |
| 2027 * RefactoringFeedback | 1876 * RefactoringFeedback |
| 2028 * | 1877 * |
| 2029 * { | 1878 * { |
| 2030 * } | 1879 * } |
| 2031 */ | 1880 */ |
| 2032 final Matcher isRefactoringFeedback = new LazyMatcher(() => new MatchesJsonObjec
t( | 1881 final Matcher isRefactoringFeedback = |
| 2033 "RefactoringFeedback", null)); | 1882 new LazyMatcher(() => new MatchesJsonObject("RefactoringFeedback", null)); |
| 2034 | 1883 |
| 2035 /** | 1884 /** |
| 2036 * RefactoringOptions | 1885 * RefactoringOptions |
| 2037 * | 1886 * |
| 2038 * { | 1887 * { |
| 2039 * } | 1888 * } |
| 2040 */ | 1889 */ |
| 2041 final Matcher isRefactoringOptions = new LazyMatcher(() => new MatchesJsonObject
( | 1890 final Matcher isRefactoringOptions = |
| 2042 "RefactoringOptions", null)); | 1891 new LazyMatcher(() => new MatchesJsonObject("RefactoringOptions", null)); |
| 2043 | 1892 |
| 2044 /** | 1893 /** |
| 2045 * RefactoringMethodParameterKind | 1894 * RefactoringMethodParameterKind |
| 2046 * | 1895 * |
| 2047 * enum { | 1896 * enum { |
| 2048 * REQUIRED | 1897 * REQUIRED |
| 2049 * POSITIONAL | 1898 * POSITIONAL |
| 2050 * NAMED | 1899 * NAMED |
| 2051 * } | 1900 * } |
| 2052 */ | 1901 */ |
| 2053 final Matcher isRefactoringMethodParameterKind = new MatchesEnum("RefactoringMet
hodParameterKind", [ | 1902 final Matcher isRefactoringMethodParameterKind = new MatchesEnum( |
| 2054 "REQUIRED", | 1903 "RefactoringMethodParameterKind", ["REQUIRED", "POSITIONAL", "NAMED"]); |
| 2055 "POSITIONAL", | |
| 2056 "NAMED" | |
| 2057 ]); | |
| 2058 | 1904 |
| 2059 /** | 1905 /** |
| 2060 * RefactoringProblem | 1906 * RefactoringProblem |
| 2061 * | 1907 * |
| 2062 * { | 1908 * { |
| 2063 * "severity": RefactoringProblemSeverity | 1909 * "severity": RefactoringProblemSeverity |
| 2064 * "message": String | 1910 * "message": String |
| 2065 * "location": optional Location | 1911 * "location": optional Location |
| 2066 * } | 1912 * } |
| 2067 */ | 1913 */ |
| 2068 final Matcher isRefactoringProblem = new LazyMatcher(() => new MatchesJsonObject
( | 1914 final Matcher isRefactoringProblem = new LazyMatcher(() => |
| 2069 "RefactoringProblem", { | 1915 new MatchesJsonObject("RefactoringProblem", |
| 2070 "severity": isRefactoringProblemSeverity, | 1916 {"severity": isRefactoringProblemSeverity, "message": isString}, |
| 2071 "message": isString | 1917 optionalFields: {"location": isLocation})); |
| 2072 }, optionalFields: { | |
| 2073 "location": isLocation | |
| 2074 })); | |
| 2075 | 1918 |
| 2076 /** | 1919 /** |
| 2077 * RefactoringProblemSeverity | 1920 * RefactoringProblemSeverity |
| 2078 * | 1921 * |
| 2079 * enum { | 1922 * enum { |
| 2080 * INFO | 1923 * INFO |
| 2081 * WARNING | 1924 * WARNING |
| 2082 * ERROR | 1925 * ERROR |
| 2083 * FATAL | 1926 * FATAL |
| 2084 * } | 1927 * } |
| 2085 */ | 1928 */ |
| 2086 final Matcher isRefactoringProblemSeverity = new MatchesEnum("RefactoringProblem
Severity", [ | 1929 final Matcher isRefactoringProblemSeverity = new MatchesEnum( |
| 2087 "INFO", | 1930 "RefactoringProblemSeverity", ["INFO", "WARNING", "ERROR", "FATAL"]); |
| 2088 "WARNING", | |
| 2089 "ERROR", | |
| 2090 "FATAL" | |
| 2091 ]); | |
| 2092 | 1931 |
| 2093 /** | 1932 /** |
| 2094 * RemoveContentOverlay | 1933 * RemoveContentOverlay |
| 2095 * | 1934 * |
| 2096 * { | 1935 * { |
| 2097 * "type": "remove" | 1936 * "type": "remove" |
| 2098 * } | 1937 * } |
| 2099 */ | 1938 */ |
| 2100 final Matcher isRemoveContentOverlay = new LazyMatcher(() => new MatchesJsonObje
ct( | 1939 final Matcher isRemoveContentOverlay = new LazyMatcher(() => |
| 2101 "RemoveContentOverlay", { | 1940 new MatchesJsonObject("RemoveContentOverlay", {"type": equals("remove")})); |
| 2102 "type": equals("remove") | |
| 2103 })); | |
| 2104 | 1941 |
| 2105 /** | 1942 /** |
| 2106 * RequestError | 1943 * RequestError |
| 2107 * | 1944 * |
| 2108 * { | 1945 * { |
| 2109 * "code": RequestErrorCode | 1946 * "code": RequestErrorCode |
| 2110 * "message": String | 1947 * "message": String |
| 2111 * "stackTrace": optional String | 1948 * "stackTrace": optional String |
| 2112 * } | 1949 * } |
| 2113 */ | 1950 */ |
| 2114 final Matcher isRequestError = new LazyMatcher(() => new MatchesJsonObject( | 1951 final Matcher isRequestError = new LazyMatcher(() => new MatchesJsonObject( |
| 2115 "RequestError", { | 1952 "RequestError", {"code": isRequestErrorCode, "message": isString}, |
| 2116 "code": isRequestErrorCode, | 1953 optionalFields: {"stackTrace": isString})); |
| 2117 "message": isString | |
| 2118 }, optionalFields: { | |
| 2119 "stackTrace": isString | |
| 2120 })); | |
| 2121 | 1954 |
| 2122 /** | 1955 /** |
| 2123 * RequestErrorCode | 1956 * RequestErrorCode |
| 2124 * | 1957 * |
| 2125 * enum { | 1958 * enum { |
| 2126 * CONTENT_MODIFIED | 1959 * CONTENT_MODIFIED |
| 2127 * DEBUG_PORT_COULD_NOT_BE_OPENED | 1960 * DEBUG_PORT_COULD_NOT_BE_OPENED |
| 2128 * FILE_NOT_ANALYZED | 1961 * FILE_NOT_ANALYZED |
| 2129 * FORMAT_INVALID_FILE | 1962 * FORMAT_INVALID_FILE |
| 2130 * FORMAT_WITH_ERRORS | 1963 * FORMAT_WITH_ERRORS |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2188 /** | 2021 /** |
| 2189 * SearchResult | 2022 * SearchResult |
| 2190 * | 2023 * |
| 2191 * { | 2024 * { |
| 2192 * "location": Location | 2025 * "location": Location |
| 2193 * "kind": SearchResultKind | 2026 * "kind": SearchResultKind |
| 2194 * "isPotential": bool | 2027 * "isPotential": bool |
| 2195 * "path": List<Element> | 2028 * "path": List<Element> |
| 2196 * } | 2029 * } |
| 2197 */ | 2030 */ |
| 2198 final Matcher isSearchResult = new LazyMatcher(() => new MatchesJsonObject( | 2031 final Matcher isSearchResult = |
| 2199 "SearchResult", { | 2032 new LazyMatcher(() => new MatchesJsonObject("SearchResult", { |
| 2200 "location": isLocation, | 2033 "location": isLocation, |
| 2201 "kind": isSearchResultKind, | 2034 "kind": isSearchResultKind, |
| 2202 "isPotential": isBool, | 2035 "isPotential": isBool, |
| 2203 "path": isListOf(isElement) | 2036 "path": isListOf(isElement) |
| 2204 })); | 2037 })); |
| 2205 | 2038 |
| 2206 /** | 2039 /** |
| 2207 * SearchResultKind | 2040 * SearchResultKind |
| 2208 * | 2041 * |
| 2209 * enum { | 2042 * enum { |
| 2210 * DECLARATION | 2043 * DECLARATION |
| 2211 * INVOCATION | 2044 * INVOCATION |
| 2212 * READ | 2045 * READ |
| 2213 * READ_WRITE | 2046 * READ_WRITE |
| 2214 * REFERENCE | 2047 * REFERENCE |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2226 "WRITE" | 2059 "WRITE" |
| 2227 ]); | 2060 ]); |
| 2228 | 2061 |
| 2229 /** | 2062 /** |
| 2230 * ServerService | 2063 * ServerService |
| 2231 * | 2064 * |
| 2232 * enum { | 2065 * enum { |
| 2233 * STATUS | 2066 * STATUS |
| 2234 * } | 2067 * } |
| 2235 */ | 2068 */ |
| 2236 final Matcher isServerService = new MatchesEnum("ServerService", [ | 2069 final Matcher isServerService = new MatchesEnum("ServerService", ["STATUS"]); |
| 2237 "STATUS" | |
| 2238 ]); | |
| 2239 | 2070 |
| 2240 /** | 2071 /** |
| 2241 * SourceChange | 2072 * SourceChange |
| 2242 * | 2073 * |
| 2243 * { | 2074 * { |
| 2244 * "message": String | 2075 * "message": String |
| 2245 * "edits": List<SourceFileEdit> | 2076 * "edits": List<SourceFileEdit> |
| 2246 * "linkedEditGroups": List<LinkedEditGroup> | 2077 * "linkedEditGroups": List<LinkedEditGroup> |
| 2247 * "selection": optional Position | 2078 * "selection": optional Position |
| 2248 * } | 2079 * } |
| 2249 */ | 2080 */ |
| 2250 final Matcher isSourceChange = new LazyMatcher(() => new MatchesJsonObject( | 2081 final Matcher isSourceChange = |
| 2251 "SourceChange", { | 2082 new LazyMatcher(() => new MatchesJsonObject("SourceChange", { |
| 2252 "message": isString, | 2083 "message": isString, |
| 2253 "edits": isListOf(isSourceFileEdit), | 2084 "edits": isListOf(isSourceFileEdit), |
| 2254 "linkedEditGroups": isListOf(isLinkedEditGroup) | 2085 "linkedEditGroups": isListOf(isLinkedEditGroup) |
| 2255 }, optionalFields: { | 2086 }, optionalFields: { |
| 2256 "selection": isPosition | 2087 "selection": isPosition |
| 2257 })); | 2088 })); |
| 2258 | 2089 |
| 2259 /** | 2090 /** |
| 2260 * SourceEdit | 2091 * SourceEdit |
| 2261 * | 2092 * |
| 2262 * { | 2093 * { |
| 2263 * "offset": int | 2094 * "offset": int |
| 2264 * "length": int | 2095 * "length": int |
| 2265 * "replacement": String | 2096 * "replacement": String |
| 2266 * "id": optional String | 2097 * "id": optional String |
| 2267 * } | 2098 * } |
| 2268 */ | 2099 */ |
| 2269 final Matcher isSourceEdit = new LazyMatcher(() => new MatchesJsonObject( | 2100 final Matcher isSourceEdit = new LazyMatcher(() => new MatchesJsonObject( |
| 2270 "SourceEdit", { | 2101 "SourceEdit", {"offset": isInt, "length": isInt, "replacement": isString}, |
| 2271 "offset": isInt, | 2102 optionalFields: {"id": isString})); |
| 2272 "length": isInt, | |
| 2273 "replacement": isString | |
| 2274 }, optionalFields: { | |
| 2275 "id": isString | |
| 2276 })); | |
| 2277 | 2103 |
| 2278 /** | 2104 /** |
| 2279 * SourceFileEdit | 2105 * SourceFileEdit |
| 2280 * | 2106 * |
| 2281 * { | 2107 * { |
| 2282 * "file": FilePath | 2108 * "file": FilePath |
| 2283 * "fileStamp": long | 2109 * "fileStamp": long |
| 2284 * "edits": List<SourceEdit> | 2110 * "edits": List<SourceEdit> |
| 2285 * } | 2111 * } |
| 2286 */ | 2112 */ |
| 2287 final Matcher isSourceFileEdit = new LazyMatcher(() => new MatchesJsonObject( | 2113 final Matcher isSourceFileEdit = new LazyMatcher(() => new MatchesJsonObject( |
| 2288 "SourceFileEdit", { | 2114 "SourceFileEdit", |
| 2289 "file": isFilePath, | 2115 {"file": isFilePath, "fileStamp": isInt, "edits": isListOf(isSourceEdit)})); |
| 2290 "fileStamp": isInt, | |
| 2291 "edits": isListOf(isSourceEdit) | |
| 2292 })); | |
| 2293 | 2116 |
| 2294 /** | 2117 /** |
| 2295 * TypeHierarchyItem | 2118 * TypeHierarchyItem |
| 2296 * | 2119 * |
| 2297 * { | 2120 * { |
| 2298 * "classElement": Element | 2121 * "classElement": Element |
| 2299 * "displayName": optional String | 2122 * "displayName": optional String |
| 2300 * "memberElement": optional Element | 2123 * "memberElement": optional Element |
| 2301 * "superclass": optional int | 2124 * "superclass": optional int |
| 2302 * "interfaces": List<int> | 2125 * "interfaces": List<int> |
| 2303 * "mixins": List<int> | 2126 * "mixins": List<int> |
| 2304 * "subclasses": List<int> | 2127 * "subclasses": List<int> |
| 2305 * } | 2128 * } |
| 2306 */ | 2129 */ |
| 2307 final Matcher isTypeHierarchyItem = new LazyMatcher(() => new MatchesJsonObject( | 2130 final Matcher isTypeHierarchyItem = |
| 2308 "TypeHierarchyItem", { | 2131 new LazyMatcher(() => new MatchesJsonObject("TypeHierarchyItem", { |
| 2309 "classElement": isElement, | 2132 "classElement": isElement, |
| 2310 "interfaces": isListOf(isInt), | 2133 "interfaces": isListOf(isInt), |
| 2311 "mixins": isListOf(isInt), | 2134 "mixins": isListOf(isInt), |
| 2312 "subclasses": isListOf(isInt) | 2135 "subclasses": isListOf(isInt) |
| 2313 }, optionalFields: { | 2136 }, optionalFields: { |
| 2314 "displayName": isString, | 2137 "displayName": isString, |
| 2315 "memberElement": isElement, | 2138 "memberElement": isElement, |
| 2316 "superclass": isInt | 2139 "superclass": isInt |
| 2317 })); | 2140 })); |
| 2318 | 2141 |
| 2319 /** | 2142 /** |
| 2320 * convertGetterToMethod feedback | 2143 * convertGetterToMethod feedback |
| 2321 */ | 2144 */ |
| 2322 final Matcher isConvertGetterToMethodFeedback = isNull; | 2145 final Matcher isConvertGetterToMethodFeedback = isNull; |
| 2323 | 2146 |
| 2324 /** | 2147 /** |
| 2325 * convertGetterToMethod options | 2148 * convertGetterToMethod options |
| 2326 */ | 2149 */ |
| 2327 final Matcher isConvertGetterToMethodOptions = isNull; | 2150 final Matcher isConvertGetterToMethodOptions = isNull; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 2340 * extractLocalVariable feedback | 2163 * extractLocalVariable feedback |
| 2341 * | 2164 * |
| 2342 * { | 2165 * { |
| 2343 * "coveringExpressionOffsets": optional List<int> | 2166 * "coveringExpressionOffsets": optional List<int> |
| 2344 * "coveringExpressionLengths": optional List<int> | 2167 * "coveringExpressionLengths": optional List<int> |
| 2345 * "names": List<String> | 2168 * "names": List<String> |
| 2346 * "offsets": List<int> | 2169 * "offsets": List<int> |
| 2347 * "lengths": List<int> | 2170 * "lengths": List<int> |
| 2348 * } | 2171 * } |
| 2349 */ | 2172 */ |
| 2350 final Matcher isExtractLocalVariableFeedback = new LazyMatcher(() => new Matches
JsonObject( | 2173 final Matcher isExtractLocalVariableFeedback = new LazyMatcher( |
| 2351 "extractLocalVariable feedback", { | 2174 () => new MatchesJsonObject("extractLocalVariable feedback", { |
| 2352 "names": isListOf(isString), | 2175 "names": isListOf(isString), |
| 2353 "offsets": isListOf(isInt), | 2176 "offsets": isListOf(isInt), |
| 2354 "lengths": isListOf(isInt) | 2177 "lengths": isListOf(isInt) |
| 2355 }, optionalFields: { | 2178 }, optionalFields: { |
| 2356 "coveringExpressionOffsets": isListOf(isInt), | 2179 "coveringExpressionOffsets": isListOf(isInt), |
| 2357 "coveringExpressionLengths": isListOf(isInt) | 2180 "coveringExpressionLengths": isListOf(isInt) |
| 2358 })); | 2181 })); |
| 2359 | 2182 |
| 2360 /** | 2183 /** |
| 2361 * extractLocalVariable options | 2184 * extractLocalVariable options |
| 2362 * | 2185 * |
| 2363 * { | 2186 * { |
| 2364 * "name": String | 2187 * "name": String |
| 2365 * "extractAll": bool | 2188 * "extractAll": bool |
| 2366 * } | 2189 * } |
| 2367 */ | 2190 */ |
| 2368 final Matcher isExtractLocalVariableOptions = new LazyMatcher(() => new MatchesJ
sonObject( | 2191 final Matcher isExtractLocalVariableOptions = new LazyMatcher(() => |
| 2369 "extractLocalVariable options", { | 2192 new MatchesJsonObject("extractLocalVariable options", |
| 2370 "name": isString, | 2193 {"name": isString, "extractAll": isBool})); |
| 2371 "extractAll": isBool | |
| 2372 })); | |
| 2373 | 2194 |
| 2374 /** | 2195 /** |
| 2375 * extractMethod feedback | 2196 * extractMethod feedback |
| 2376 * | 2197 * |
| 2377 * { | 2198 * { |
| 2378 * "offset": int | 2199 * "offset": int |
| 2379 * "length": int | 2200 * "length": int |
| 2380 * "returnType": String | 2201 * "returnType": String |
| 2381 * "names": List<String> | 2202 * "names": List<String> |
| 2382 * "canCreateGetter": bool | 2203 * "canCreateGetter": bool |
| 2383 * "parameters": List<RefactoringMethodParameter> | 2204 * "parameters": List<RefactoringMethodParameter> |
| 2384 * "offsets": List<int> | 2205 * "offsets": List<int> |
| 2385 * "lengths": List<int> | 2206 * "lengths": List<int> |
| 2386 * } | 2207 * } |
| 2387 */ | 2208 */ |
| 2388 final Matcher isExtractMethodFeedback = new LazyMatcher(() => new MatchesJsonObj
ect( | 2209 final Matcher isExtractMethodFeedback = |
| 2389 "extractMethod feedback", { | 2210 new LazyMatcher(() => new MatchesJsonObject("extractMethod feedback", { |
| 2390 "offset": isInt, | 2211 "offset": isInt, |
| 2391 "length": isInt, | 2212 "length": isInt, |
| 2392 "returnType": isString, | 2213 "returnType": isString, |
| 2393 "names": isListOf(isString), | 2214 "names": isListOf(isString), |
| 2394 "canCreateGetter": isBool, | 2215 "canCreateGetter": isBool, |
| 2395 "parameters": isListOf(isRefactoringMethodParameter), | 2216 "parameters": isListOf(isRefactoringMethodParameter), |
| 2396 "offsets": isListOf(isInt), | 2217 "offsets": isListOf(isInt), |
| 2397 "lengths": isListOf(isInt) | 2218 "lengths": isListOf(isInt) |
| 2398 })); | 2219 })); |
| 2399 | 2220 |
| 2400 /** | 2221 /** |
| 2401 * extractMethod options | 2222 * extractMethod options |
| 2402 * | 2223 * |
| 2403 * { | 2224 * { |
| 2404 * "returnType": String | 2225 * "returnType": String |
| 2405 * "createGetter": bool | 2226 * "createGetter": bool |
| 2406 * "name": String | 2227 * "name": String |
| 2407 * "parameters": List<RefactoringMethodParameter> | 2228 * "parameters": List<RefactoringMethodParameter> |
| 2408 * "extractAll": bool | 2229 * "extractAll": bool |
| 2409 * } | 2230 * } |
| 2410 */ | 2231 */ |
| 2411 final Matcher isExtractMethodOptions = new LazyMatcher(() => new MatchesJsonObje
ct( | 2232 final Matcher isExtractMethodOptions = |
| 2412 "extractMethod options", { | 2233 new LazyMatcher(() => new MatchesJsonObject("extractMethod options", { |
| 2413 "returnType": isString, | 2234 "returnType": isString, |
| 2414 "createGetter": isBool, | 2235 "createGetter": isBool, |
| 2415 "name": isString, | 2236 "name": isString, |
| 2416 "parameters": isListOf(isRefactoringMethodParameter), | 2237 "parameters": isListOf(isRefactoringMethodParameter), |
| 2417 "extractAll": isBool | 2238 "extractAll": isBool |
| 2418 })); | 2239 })); |
| 2419 | 2240 |
| 2420 /** | 2241 /** |
| 2421 * inlineLocalVariable feedback | 2242 * inlineLocalVariable feedback |
| 2422 * | 2243 * |
| 2423 * { | 2244 * { |
| 2424 * "name": String | 2245 * "name": String |
| 2425 * "occurrences": int | 2246 * "occurrences": int |
| 2426 * } | 2247 * } |
| 2427 */ | 2248 */ |
| 2428 final Matcher isInlineLocalVariableFeedback = new LazyMatcher(() => new MatchesJ
sonObject( | 2249 final Matcher isInlineLocalVariableFeedback = new LazyMatcher(() => |
| 2429 "inlineLocalVariable feedback", { | 2250 new MatchesJsonObject("inlineLocalVariable feedback", |
| 2430 "name": isString, | 2251 {"name": isString, "occurrences": isInt})); |
| 2431 "occurrences": isInt | |
| 2432 })); | |
| 2433 | 2252 |
| 2434 /** | 2253 /** |
| 2435 * inlineLocalVariable options | 2254 * inlineLocalVariable options |
| 2436 */ | 2255 */ |
| 2437 final Matcher isInlineLocalVariableOptions = isNull; | 2256 final Matcher isInlineLocalVariableOptions = isNull; |
| 2438 | 2257 |
| 2439 /** | 2258 /** |
| 2440 * inlineMethod feedback | 2259 * inlineMethod feedback |
| 2441 * | 2260 * |
| 2442 * { | 2261 * { |
| 2443 * "className": optional String | 2262 * "className": optional String |
| 2444 * "methodName": String | 2263 * "methodName": String |
| 2445 * "isDeclaration": bool | 2264 * "isDeclaration": bool |
| 2446 * } | 2265 * } |
| 2447 */ | 2266 */ |
| 2448 final Matcher isInlineMethodFeedback = new LazyMatcher(() => new MatchesJsonObje
ct( | 2267 final Matcher isInlineMethodFeedback = new LazyMatcher(() => |
| 2449 "inlineMethod feedback", { | 2268 new MatchesJsonObject("inlineMethod feedback", |
| 2450 "methodName": isString, | 2269 {"methodName": isString, "isDeclaration": isBool}, |
| 2451 "isDeclaration": isBool | 2270 optionalFields: {"className": isString})); |
| 2452 }, optionalFields: { | |
| 2453 "className": isString | |
| 2454 })); | |
| 2455 | 2271 |
| 2456 /** | 2272 /** |
| 2457 * inlineMethod options | 2273 * inlineMethod options |
| 2458 * | 2274 * |
| 2459 * { | 2275 * { |
| 2460 * "deleteSource": bool | 2276 * "deleteSource": bool |
| 2461 * "inlineAll": bool | 2277 * "inlineAll": bool |
| 2462 * } | 2278 * } |
| 2463 */ | 2279 */ |
| 2464 final Matcher isInlineMethodOptions = new LazyMatcher(() => new MatchesJsonObjec
t( | 2280 final Matcher isInlineMethodOptions = new LazyMatcher(() => |
| 2465 "inlineMethod options", { | 2281 new MatchesJsonObject( |
| 2466 "deleteSource": isBool, | 2282 "inlineMethod options", {"deleteSource": isBool, "inlineAll": isBool})); |
| 2467 "inlineAll": isBool | |
| 2468 })); | |
| 2469 | 2283 |
| 2470 /** | 2284 /** |
| 2471 * moveFile feedback | 2285 * moveFile feedback |
| 2472 */ | 2286 */ |
| 2473 final Matcher isMoveFileFeedback = isNull; | 2287 final Matcher isMoveFileFeedback = isNull; |
| 2474 | 2288 |
| 2475 /** | 2289 /** |
| 2476 * moveFile options | 2290 * moveFile options |
| 2477 * | 2291 * |
| 2478 * { | 2292 * { |
| 2479 * "newFile": FilePath | 2293 * "newFile": FilePath |
| 2480 * } | 2294 * } |
| 2481 */ | 2295 */ |
| 2482 final Matcher isMoveFileOptions = new LazyMatcher(() => new MatchesJsonObject( | 2296 final Matcher isMoveFileOptions = new LazyMatcher( |
| 2483 "moveFile options", { | 2297 () => new MatchesJsonObject("moveFile options", {"newFile": isFilePath})); |
| 2484 "newFile": isFilePath | |
| 2485 })); | |
| 2486 | 2298 |
| 2487 /** | 2299 /** |
| 2488 * rename feedback | 2300 * rename feedback |
| 2489 * | 2301 * |
| 2490 * { | 2302 * { |
| 2491 * "offset": int | 2303 * "offset": int |
| 2492 * "length": int | 2304 * "length": int |
| 2493 * "elementKindName": String | 2305 * "elementKindName": String |
| 2494 * "oldName": String | 2306 * "oldName": String |
| 2495 * } | 2307 * } |
| 2496 */ | 2308 */ |
| 2497 final Matcher isRenameFeedback = new LazyMatcher(() => new MatchesJsonObject( | 2309 final Matcher isRenameFeedback = |
| 2498 "rename feedback", { | 2310 new LazyMatcher(() => new MatchesJsonObject("rename feedback", { |
| 2499 "offset": isInt, | 2311 "offset": isInt, |
| 2500 "length": isInt, | 2312 "length": isInt, |
| 2501 "elementKindName": isString, | 2313 "elementKindName": isString, |
| 2502 "oldName": isString | 2314 "oldName": isString |
| 2503 })); | 2315 })); |
| 2504 | 2316 |
| 2505 /** | 2317 /** |
| 2506 * rename options | 2318 * rename options |
| 2507 * | 2319 * |
| 2508 * { | 2320 * { |
| 2509 * "newName": String | 2321 * "newName": String |
| 2510 * } | 2322 * } |
| 2511 */ | 2323 */ |
| 2512 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( | 2324 final Matcher isRenameOptions = new LazyMatcher( |
| 2513 "rename options", { | 2325 () => new MatchesJsonObject("rename options", {"newName": isString})); |
| 2514 "newName": isString | |
| 2515 })); | |
| 2516 | |
| OLD | NEW |