| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 // | 4 // |
| 5 // This file has been automatically generated. Please do not edit it manually. | 5 // This file has been automatically generated. Please do not edit it manually. |
| 6 // To regenerate the file, use the script | 6 // To regenerate the file, use the script |
| 7 // "pkg/analysis_server/tool/spec/generate_files". | 7 // "pkg/analysis_server/tool/spec/generate_files". |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * Matchers for data types defined in the analysis server API | 10 * Matchers for data types defined in the analysis server API |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 "edit.getAssists params", { | 324 "edit.getAssists params", { |
| 325 "file": isFilePath, | 325 "file": isFilePath, |
| 326 "offset": isInt, | 326 "offset": isInt, |
| 327 "length": isInt | 327 "length": isInt |
| 328 })); | 328 })); |
| 329 | 329 |
| 330 /** | 330 /** |
| 331 * edit.getAssists result | 331 * edit.getAssists result |
| 332 * | 332 * |
| 333 * { | 333 * { |
| 334 * "assists": List<SourceChange> | 334 * "assists": List<PrioritizedSourceChange> |
| 335 * } | 335 * } |
| 336 */ | 336 */ |
| 337 final Matcher isEditGetAssistsResult = new LazyMatcher(() => new MatchesJsonObje
ct( | 337 final Matcher isEditGetAssistsResult = new LazyMatcher(() => new MatchesJsonObje
ct( |
| 338 "edit.getAssists result", { | 338 "edit.getAssists result", { |
| 339 "assists": isListOf(isSourceChange) | 339 "assists": isListOf(isPrioritizedSourceChange) |
| 340 })); | 340 })); |
| 341 | 341 |
| 342 /** | 342 /** |
| 343 * edit.getAvailableRefactorings params | 343 * edit.getAvailableRefactorings params |
| 344 * | 344 * |
| 345 * { | 345 * { |
| 346 * "file": FilePath | 346 * "file": FilePath |
| 347 * "offset": int | 347 * "offset": int |
| 348 * "length": int | 348 * "length": int |
| 349 * } | 349 * } |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 }, optionalFields: { | 476 }, optionalFields: { |
| 477 "correction": isString, | 477 "correction": isString, |
| 478 "hasFix": isBool | 478 "hasFix": isBool |
| 479 })); | 479 })); |
| 480 | 480 |
| 481 /** | 481 /** |
| 482 * AnalysisErrorFixes | 482 * AnalysisErrorFixes |
| 483 * | 483 * |
| 484 * { | 484 * { |
| 485 * "error": AnalysisError | 485 * "error": AnalysisError |
| 486 * "fixes": List<SourceChange> | 486 * "fixes": List<PrioritizedSourceChange> |
| 487 * } | 487 * } |
| 488 */ | 488 */ |
| 489 final Matcher isAnalysisErrorFixes = new LazyMatcher(() => new MatchesJsonObject
( | 489 final Matcher isAnalysisErrorFixes = new LazyMatcher(() => new MatchesJsonObject
( |
| 490 "AnalysisErrorFixes", { | 490 "AnalysisErrorFixes", { |
| 491 "error": isAnalysisError, | 491 "error": isAnalysisError, |
| 492 "fixes": isListOf(isSourceChange) | 492 "fixes": isListOf(isPrioritizedSourceChange) |
| 493 })); | 493 })); |
| 494 | 494 |
| 495 /** | 495 /** |
| 496 * AnalysisErrorSeverity | 496 * AnalysisErrorSeverity |
| 497 * | 497 * |
| 498 * enum { | 498 * enum { |
| 499 * INFO | 499 * INFO |
| 500 * WARNING | 500 * WARNING |
| 501 * ERROR | 501 * ERROR |
| 502 * } | 502 * } |
| (...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1110 * "offset": int | 1110 * "offset": int |
| 1111 * } | 1111 * } |
| 1112 */ | 1112 */ |
| 1113 final Matcher isPosition = new LazyMatcher(() => new MatchesJsonObject( | 1113 final Matcher isPosition = new LazyMatcher(() => new MatchesJsonObject( |
| 1114 "Position", { | 1114 "Position", { |
| 1115 "file": isFilePath, | 1115 "file": isFilePath, |
| 1116 "offset": isInt | 1116 "offset": isInt |
| 1117 })); | 1117 })); |
| 1118 | 1118 |
| 1119 /** | 1119 /** |
| 1120 * PrioritizedSourceChange |
| 1121 * |
| 1122 * { |
| 1123 * "priority": int |
| 1124 * "change": SourceChange |
| 1125 * } |
| 1126 */ |
| 1127 final Matcher isPrioritizedSourceChange = new LazyMatcher(() => new MatchesJsonO
bject( |
| 1128 "PrioritizedSourceChange", { |
| 1129 "priority": isInt, |
| 1130 "change": isSourceChange |
| 1131 })); |
| 1132 |
| 1133 /** |
| 1120 * RefactoringFeedback | 1134 * RefactoringFeedback |
| 1121 * | 1135 * |
| 1122 * { | 1136 * { |
| 1123 * } | 1137 * } |
| 1124 */ | 1138 */ |
| 1125 final Matcher isRefactoringFeedback = new LazyMatcher(() => new MatchesJsonObjec
t( | 1139 final Matcher isRefactoringFeedback = new LazyMatcher(() => new MatchesJsonObjec
t( |
| 1126 "RefactoringFeedback", null)); | 1140 "RefactoringFeedback", null)); |
| 1127 | 1141 |
| 1128 /** | 1142 /** |
| 1129 * RefactoringKind | 1143 * RefactoringKind |
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1551 * | 1565 * |
| 1552 * { | 1566 * { |
| 1553 * "newName": String | 1567 * "newName": String |
| 1554 * } | 1568 * } |
| 1555 */ | 1569 */ |
| 1556 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( | 1570 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( |
| 1557 "rename options", { | 1571 "rename options", { |
| 1558 "newName": isString | 1572 "newName": isString |
| 1559 })); | 1573 })); |
| 1560 | 1574 |
| OLD | NEW |