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

Side by Side Diff: pkg/analysis_server/test/integration/protocol_matchers.dart

Issue 508203002: Rename some bools in the analysis server API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
OLDNEW
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/spec/generate_files". 7 // "pkg/analysis_server/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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 /** 63 /**
64 * server.connected params 64 * server.connected params
65 */ 65 */
66 final Matcher isServerConnectedParams = isNull; 66 final Matcher isServerConnectedParams = isNull;
67 67
68 /** 68 /**
69 * server.error params 69 * server.error params
70 * 70 *
71 * { 71 * {
72 * "fatal": bool 72 * "isFatal": bool
73 * "message": String 73 * "message": String
74 * "stackTrace": String 74 * "stackTrace": String
75 * } 75 * }
76 */ 76 */
77 final Matcher isServerErrorParams = new LazyMatcher(() => new MatchesJsonObject( 77 final Matcher isServerErrorParams = new LazyMatcher(() => new MatchesJsonObject(
78 "server.error params", { 78 "server.error params", {
79 "fatal": isBool, 79 "isFatal": isBool,
80 "message": isString, 80 "message": isString,
81 "stackTrace": isString 81 "stackTrace": isString
82 })); 82 }));
83 83
84 /** 84 /**
85 * server.status params 85 * server.status params
86 * 86 *
87 * { 87 * {
88 * "analysis": optional AnalysisStatus 88 * "analysis": optional AnalysisStatus
89 * } 89 * }
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 })); 377 }));
378 378
379 /** 379 /**
380 * completion.results params 380 * completion.results params
381 * 381 *
382 * { 382 * {
383 * "id": CompletionId 383 * "id": CompletionId
384 * "replacementOffset": int 384 * "replacementOffset": int
385 * "replacementLength": int 385 * "replacementLength": int
386 * "results": List<CompletionSuggestion> 386 * "results": List<CompletionSuggestion>
387 * "last": bool 387 * "isLast": bool
388 * } 388 * }
389 */ 389 */
390 final Matcher isCompletionResultsParams = new LazyMatcher(() => new MatchesJsonO bject( 390 final Matcher isCompletionResultsParams = new LazyMatcher(() => new MatchesJsonO bject(
391 "completion.results params", { 391 "completion.results params", {
392 "id": isCompletionId, 392 "id": isCompletionId,
393 "replacementOffset": isInt, 393 "replacementOffset": isInt,
394 "replacementLength": isInt, 394 "replacementLength": isInt,
395 "results": isListOf(isCompletionSuggestion), 395 "results": isListOf(isCompletionSuggestion),
396 "last": isBool 396 "isLast": isBool
397 })); 397 }));
398 398
399 /** 399 /**
400 * search.findElementReferences params 400 * search.findElementReferences params
401 * 401 *
402 * { 402 * {
403 * "file": FilePath 403 * "file": FilePath
404 * "offset": int 404 * "offset": int
405 * "includePotential": bool 405 * "includePotential": bool
406 * } 406 * }
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 "search.getTypeHierarchy result", null, optionalFields: { 524 "search.getTypeHierarchy result", null, optionalFields: {
525 "hierarchyItems": isListOf(isTypeHierarchyItem) 525 "hierarchyItems": isListOf(isTypeHierarchyItem)
526 })); 526 }));
527 527
528 /** 528 /**
529 * search.results params 529 * search.results params
530 * 530 *
531 * { 531 * {
532 * "id": SearchId 532 * "id": SearchId
533 * "results": List<SearchResult> 533 * "results": List<SearchResult>
534 * "last": bool 534 * "isLast": bool
535 * } 535 * }
536 */ 536 */
537 final Matcher isSearchResultsParams = new LazyMatcher(() => new MatchesJsonObjec t( 537 final Matcher isSearchResultsParams = new LazyMatcher(() => new MatchesJsonObjec t(
538 "search.results params", { 538 "search.results params", {
539 "id": isSearchId, 539 "id": isSearchId,
540 "results": isListOf(isSearchResult), 540 "results": isListOf(isSearchResult),
541 "last": isBool 541 "isLast": isBool
542 })); 542 }));
543 543
544 /** 544 /**
545 * edit.getAssists params 545 * edit.getAssists params
546 * 546 *
547 * { 547 * {
548 * "file": FilePath 548 * "file": FilePath
549 * "offset": int 549 * "offset": int
550 * "length": int 550 * "length": int
551 * } 551 * }
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 "NAVIGATION", 843 "NAVIGATION",
844 "OCCURRENCES", 844 "OCCURRENCES",
845 "OUTLINE", 845 "OUTLINE",
846 "OVERRIDES" 846 "OVERRIDES"
847 ]); 847 ]);
848 848
849 /** 849 /**
850 * AnalysisStatus 850 * AnalysisStatus
851 * 851 *
852 * { 852 * {
853 * "analyzing": bool 853 * "isAnalyzing": bool
854 * "analysisTarget": optional String 854 * "analysisTarget": optional String
855 * } 855 * }
856 */ 856 */
857 final Matcher isAnalysisStatus = new LazyMatcher(() => new MatchesJsonObject( 857 final Matcher isAnalysisStatus = new LazyMatcher(() => new MatchesJsonObject(
858 "AnalysisStatus", { 858 "AnalysisStatus", {
859 "analyzing": isBool 859 "isAnalyzing": isBool
860 }, optionalFields: { 860 }, optionalFields: {
861 "analysisTarget": isString 861 "analysisTarget": isString
862 })); 862 }));
863 863
864 /** 864 /**
865 * ChangeContentOverlay 865 * ChangeContentOverlay
866 * 866 *
867 * { 867 * {
868 * "type": "change" 868 * "type": "change"
869 * "edits": List<SourceEdit> 869 * "edits": List<SourceEdit>
(...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after
1893 * 1893 *
1894 * { 1894 * {
1895 * "newName": String 1895 * "newName": String
1896 * } 1896 * }
1897 */ 1897 */
1898 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( 1898 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject(
1899 "rename options", { 1899 "rename options", {
1900 "newName": isString 1900 "newName": isString
1901 })); 1901 }));
1902 1902
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698