| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 * { | 137 * { |
| 138 * "hovers": List<HoverInformation> | 138 * "hovers": List<HoverInformation> |
| 139 * } | 139 * } |
| 140 */ | 140 */ |
| 141 final Matcher isAnalysisGetHoverResult = new LazyMatcher(() => new MatchesJsonOb
ject( | 141 final Matcher isAnalysisGetHoverResult = new LazyMatcher(() => new MatchesJsonOb
ject( |
| 142 "analysis.getHover result", { | 142 "analysis.getHover result", { |
| 143 "hovers": isListOf(isHoverInformation) | 143 "hovers": isListOf(isHoverInformation) |
| 144 })); | 144 })); |
| 145 | 145 |
| 146 /** | 146 /** |
| 147 * analysis.getNavigation params |
| 148 * |
| 149 * { |
| 150 * "file": FilePath |
| 151 * "start": int |
| 152 * "end": int |
| 153 * } |
| 154 */ |
| 155 final Matcher isAnalysisGetNavigationParams = new LazyMatcher(() => new MatchesJ
sonObject( |
| 156 "analysis.getNavigation params", { |
| 157 "file": isFilePath, |
| 158 "start": isInt, |
| 159 "end": isInt |
| 160 })); |
| 161 |
| 162 /** |
| 163 * analysis.getNavigation result |
| 164 * |
| 165 * { |
| 166 * "files": List<FilePath> |
| 167 * "targets": List<NavigationTarget> |
| 168 * "regions": List<NavigationRegion> |
| 169 * } |
| 170 */ |
| 171 final Matcher isAnalysisGetNavigationResult = new LazyMatcher(() => new MatchesJ
sonObject( |
| 172 "analysis.getNavigation result", { |
| 173 "files": isListOf(isFilePath), |
| 174 "targets": isListOf(isNavigationTarget), |
| 175 "regions": isListOf(isNavigationRegion) |
| 176 })); |
| 177 |
| 178 /** |
| 147 * analysis.reanalyze params | 179 * analysis.reanalyze params |
| 148 */ | 180 */ |
| 149 final Matcher isAnalysisReanalyzeParams = isNull; | 181 final Matcher isAnalysisReanalyzeParams = isNull; |
| 150 | 182 |
| 151 /** | 183 /** |
| 152 * analysis.reanalyze result | 184 * analysis.reanalyze result |
| 153 */ | 185 */ |
| 154 final Matcher isAnalysisReanalyzeResult = isNull; | 186 final Matcher isAnalysisReanalyzeResult = isNull; |
| 155 | 187 |
| 156 /** | 188 /** |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 * "regions": List<HighlightRegion> | 323 * "regions": List<HighlightRegion> |
| 292 * } | 324 * } |
| 293 */ | 325 */ |
| 294 final Matcher isAnalysisHighlightsParams = new LazyMatcher(() => new MatchesJson
Object( | 326 final Matcher isAnalysisHighlightsParams = new LazyMatcher(() => new MatchesJson
Object( |
| 295 "analysis.highlights params", { | 327 "analysis.highlights params", { |
| 296 "file": isFilePath, | 328 "file": isFilePath, |
| 297 "regions": isListOf(isHighlightRegion) | 329 "regions": isListOf(isHighlightRegion) |
| 298 })); | 330 })); |
| 299 | 331 |
| 300 /** | 332 /** |
| 333 * analysis.invalidate params |
| 334 * |
| 335 * { |
| 336 * "file": FilePath |
| 337 * "start": int |
| 338 * "end": int |
| 339 * "delta": int |
| 340 * } |
| 341 */ |
| 342 final Matcher isAnalysisInvalidateParams = new LazyMatcher(() => new MatchesJson
Object( |
| 343 "analysis.invalidate params", { |
| 344 "file": isFilePath, |
| 345 "start": isInt, |
| 346 "end": isInt, |
| 347 "delta": isInt |
| 348 })); |
| 349 |
| 350 /** |
| 301 * analysis.navigation params | 351 * analysis.navigation params |
| 302 * | 352 * |
| 303 * { | 353 * { |
| 304 * "file": FilePath | 354 * "file": FilePath |
| 305 * "regions": List<NavigationRegion> | 355 * "regions": List<NavigationRegion> |
| 306 * "targets": List<NavigationTarget> | 356 * "targets": List<NavigationTarget> |
| 307 * "files": List<FilePath> | 357 * "files": List<FilePath> |
| 308 * } | 358 * } |
| 309 */ | 359 */ |
| 310 final Matcher isAnalysisNavigationParams = new LazyMatcher(() => new MatchesJson
Object( | 360 final Matcher isAnalysisNavigationParams = new LazyMatcher(() => new MatchesJson
Object( |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 915 "generateDart2jsHints": isBool, | 965 "generateDart2jsHints": isBool, |
| 916 "generateHints": isBool | 966 "generateHints": isBool |
| 917 })); | 967 })); |
| 918 | 968 |
| 919 /** | 969 /** |
| 920 * AnalysisService | 970 * AnalysisService |
| 921 * | 971 * |
| 922 * enum { | 972 * enum { |
| 923 * FOLDING | 973 * FOLDING |
| 924 * HIGHLIGHTS | 974 * HIGHLIGHTS |
| 975 * INVALIDATE |
| 925 * NAVIGATION | 976 * NAVIGATION |
| 926 * OCCURRENCES | 977 * OCCURRENCES |
| 927 * OUTLINE | 978 * OUTLINE |
| 928 * OVERRIDES | 979 * OVERRIDES |
| 929 * } | 980 * } |
| 930 */ | 981 */ |
| 931 final Matcher isAnalysisService = new MatchesEnum("AnalysisService", [ | 982 final Matcher isAnalysisService = new MatchesEnum("AnalysisService", [ |
| 932 "FOLDING", | 983 "FOLDING", |
| 933 "HIGHLIGHTS", | 984 "HIGHLIGHTS", |
| 985 "INVALIDATE", |
| 934 "NAVIGATION", | 986 "NAVIGATION", |
| 935 "OCCURRENCES", | 987 "OCCURRENCES", |
| 936 "OUTLINE", | 988 "OUTLINE", |
| 937 "OVERRIDES" | 989 "OVERRIDES" |
| 938 ]); | 990 ]); |
| 939 | 991 |
| 940 /** | 992 /** |
| 941 * AnalysisStatus | 993 * AnalysisStatus |
| 942 * | 994 * |
| 943 * { | 995 * { |
| (...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2041 * | 2093 * |
| 2042 * { | 2094 * { |
| 2043 * "newName": String | 2095 * "newName": String |
| 2044 * } | 2096 * } |
| 2045 */ | 2097 */ |
| 2046 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( | 2098 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( |
| 2047 "rename options", { | 2099 "rename options", { |
| 2048 "newName": isString | 2100 "newName": isString |
| 2049 })); | 2101 })); |
| 2050 | 2102 |
| OLD | NEW |