| 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 |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 "file": isFilePath, | 296 "file": isFilePath, |
| 297 "regions": isListOf(isHighlightRegion) | 297 "regions": isListOf(isHighlightRegion) |
| 298 })); | 298 })); |
| 299 | 299 |
| 300 /** | 300 /** |
| 301 * analysis.navigation params | 301 * analysis.navigation params |
| 302 * | 302 * |
| 303 * { | 303 * { |
| 304 * "file": FilePath | 304 * "file": FilePath |
| 305 * "regions": List<NavigationRegion> | 305 * "regions": List<NavigationRegion> |
| 306 * "targets": List<NavigationTarget> |
| 307 * "targetFiles": List<FilePath> |
| 306 * } | 308 * } |
| 307 */ | 309 */ |
| 308 final Matcher isAnalysisNavigationParams = new LazyMatcher(() => new MatchesJson
Object( | 310 final Matcher isAnalysisNavigationParams = new LazyMatcher(() => new MatchesJson
Object( |
| 309 "analysis.navigation params", { | 311 "analysis.navigation params", { |
| 310 "file": isFilePath, | 312 "file": isFilePath, |
| 311 "regions": isListOf(isNavigationRegion) | 313 "regions": isListOf(isNavigationRegion), |
| 314 "targets": isListOf(isNavigationTarget), |
| 315 "targetFiles": isListOf(isFilePath) |
| 312 })); | 316 })); |
| 313 | 317 |
| 314 /** | 318 /** |
| 315 * analysis.occurrences params | 319 * analysis.occurrences params |
| 316 * | 320 * |
| 317 * { | 321 * { |
| 318 * "file": FilePath | 322 * "file": FilePath |
| 319 * "occurrences": List<Occurrences> | 323 * "occurrences": List<Occurrences> |
| 320 * } | 324 * } |
| 321 */ | 325 */ |
| (...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1417 "startLine": isInt, | 1421 "startLine": isInt, |
| 1418 "startColumn": isInt | 1422 "startColumn": isInt |
| 1419 })); | 1423 })); |
| 1420 | 1424 |
| 1421 /** | 1425 /** |
| 1422 * NavigationRegion | 1426 * NavigationRegion |
| 1423 * | 1427 * |
| 1424 * { | 1428 * { |
| 1425 * "offset": int | 1429 * "offset": int |
| 1426 * "length": int | 1430 * "length": int |
| 1427 * "targets": List<Element> | 1431 * "targetIndexes": List<int> |
| 1428 * } | 1432 * } |
| 1429 */ | 1433 */ |
| 1430 final Matcher isNavigationRegion = new LazyMatcher(() => new MatchesJsonObject( | 1434 final Matcher isNavigationRegion = new LazyMatcher(() => new MatchesJsonObject( |
| 1431 "NavigationRegion", { | 1435 "NavigationRegion", { |
| 1432 "offset": isInt, | 1436 "offset": isInt, |
| 1433 "length": isInt, | 1437 "length": isInt, |
| 1434 "targets": isListOf(isElement) | 1438 "targetIndexes": isListOf(isInt) |
| 1435 })); | 1439 })); |
| 1436 | 1440 |
| 1437 /** | 1441 /** |
| 1442 * NavigationTarget |
| 1443 * |
| 1444 * { |
| 1445 * "kind": ElementKind |
| 1446 * "fileIndex": int |
| 1447 * "offset": int |
| 1448 * "length": int |
| 1449 * "startLine": int |
| 1450 * "startColumn": int |
| 1451 * } |
| 1452 */ |
| 1453 final Matcher isNavigationTarget = new LazyMatcher(() => new MatchesJsonObject( |
| 1454 "NavigationTarget", { |
| 1455 "kind": isElementKind, |
| 1456 "fileIndex": isInt, |
| 1457 "offset": isInt, |
| 1458 "length": isInt, |
| 1459 "startLine": isInt, |
| 1460 "startColumn": isInt |
| 1461 })); |
| 1462 |
| 1463 /** |
| 1438 * Occurrences | 1464 * Occurrences |
| 1439 * | 1465 * |
| 1440 * { | 1466 * { |
| 1441 * "element": Element | 1467 * "element": Element |
| 1442 * "offsets": List<int> | 1468 * "offsets": List<int> |
| 1443 * "length": int | 1469 * "length": int |
| 1444 * } | 1470 * } |
| 1445 */ | 1471 */ |
| 1446 final Matcher isOccurrences = new LazyMatcher(() => new MatchesJsonObject( | 1472 final Matcher isOccurrences = new LazyMatcher(() => new MatchesJsonObject( |
| 1447 "Occurrences", { | 1473 "Occurrences", { |
| (...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2015 * | 2041 * |
| 2016 * { | 2042 * { |
| 2017 * "newName": String | 2043 * "newName": String |
| 2018 * } | 2044 * } |
| 2019 */ | 2045 */ |
| 2020 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( | 2046 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( |
| 2021 "rename options", { | 2047 "rename options", { |
| 2022 "newName": isString | 2048 "newName": isString |
| 2023 })); | 2049 })); |
| 2024 | 2050 |
| OLD | NEW |