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

Side by Side Diff: pkg/analyzer_plugin/test/integration/support/protocol_matchers.dart

Issue 2908523002: Add a getNavigation request for plugins (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 890 matching lines...) Expand 10 before | Expand all | Expand 10 after
901 * { 901 * {
902 * "file": FilePath 902 * "file": FilePath
903 * "regions": List<FoldingRegion> 903 * "regions": List<FoldingRegion>
904 * } 904 * }
905 */ 905 */
906 final Matcher isAnalysisFoldingParams = new LazyMatcher(() => 906 final Matcher isAnalysisFoldingParams = new LazyMatcher(() =>
907 new MatchesJsonObject("analysis.folding params", 907 new MatchesJsonObject("analysis.folding params",
908 {"file": isFilePath, "regions": isListOf(isFoldingRegion)})); 908 {"file": isFilePath, "regions": isListOf(isFoldingRegion)}));
909 909
910 /** 910 /**
911 * analysis.getNavigation params
912 *
913 * {
914 * "file": FilePath
915 * "offset": int
916 * "length": int
917 * }
918 */
919 final Matcher isAnalysisGetNavigationParams = new LazyMatcher(() =>
920 new MatchesJsonObject("analysis.getNavigation params",
921 {"file": isFilePath, "offset": isInt, "length": isInt}));
922
923 /**
924 * analysis.getNavigation result
925 *
926 * {
927 * "files": List<FilePath>
928 * "targets": List<NavigationTarget>
929 * "regions": List<NavigationRegion>
930 * }
931 */
932 final Matcher isAnalysisGetNavigationResult = new LazyMatcher(
933 () => new MatchesJsonObject("analysis.getNavigation result", {
934 "files": isListOf(isFilePath),
935 "targets": isListOf(isNavigationTarget),
936 "regions": isListOf(isNavigationRegion)
937 }));
938
939 /**
911 * analysis.handleWatchEvents params 940 * analysis.handleWatchEvents params
912 * 941 *
913 * { 942 * {
914 * "events": List<WatchEvent> 943 * "events": List<WatchEvent>
915 * } 944 * }
916 */ 945 */
917 final Matcher isAnalysisHandleWatchEventsParams = new LazyMatcher(() => 946 final Matcher isAnalysisHandleWatchEventsParams = new LazyMatcher(() =>
918 new MatchesJsonObject("analysis.handleWatchEvents params", 947 new MatchesJsonObject("analysis.handleWatchEvents params",
919 {"events": isListOf(isWatchEvent)})); 948 {"events": isListOf(isWatchEvent)}));
920 949
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
1459 1488
1460 /** 1489 /**
1461 * rename options 1490 * rename options
1462 * 1491 *
1463 * { 1492 * {
1464 * "newName": String 1493 * "newName": String
1465 * } 1494 * }
1466 */ 1495 */
1467 final Matcher isRenameOptions = new LazyMatcher( 1496 final Matcher isRenameOptions = new LazyMatcher(
1468 () => new MatchesJsonObject("rename options", {"newName": isString})); 1497 () => new MatchesJsonObject("rename options", {"newName": isString}));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698