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

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

Issue 461283002: Improve spec style and minor changes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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
« no previous file with comments | « pkg/analysis_server/doc/api.html ('k') | pkg/analysis_server/tool/spec/spec_input.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 "location": isLocation, 799 "location": isLocation,
800 "message": isString 800 "message": isString
801 }, optionalFields: { 801 }, optionalFields: {
802 "correction": isString 802 "correction": isString
803 }); 803 });
804 804
805 /** 805 /**
806 * AnalysisOptions 806 * AnalysisOptions
807 * 807 *
808 * { 808 * {
809 * "analyzeAngular": optional bool
810 * "analyzePolymer": optional bool
811 * "enableAsync": optional bool 809 * "enableAsync": optional bool
812 * "enableDeferredLoading": optional bool 810 * "enableDeferredLoading": optional bool
813 * "enableEnums": optional bool 811 * "enableEnums": optional bool
814 * "generateDart2jsHints": optional bool 812 * "generateDart2jsHints": optional bool
815 * "generateHints": optional bool 813 * "generateHints": optional bool
816 * } 814 * }
817 */ 815 */
818 final Matcher isAnalysisOptions = new MatchesJsonObject( 816 final Matcher isAnalysisOptions = new MatchesJsonObject(
819 "AnalysisOptions", null, optionalFields: { 817 "AnalysisOptions", null, optionalFields: {
820 "analyzeAngular": isBool,
821 "analyzePolymer": isBool,
822 "enableAsync": isBool, 818 "enableAsync": isBool,
823 "enableDeferredLoading": isBool, 819 "enableDeferredLoading": isBool,
824 "enableEnums": isBool, 820 "enableEnums": isBool,
825 "generateDart2jsHints": isBool, 821 "generateDart2jsHints": isBool,
826 "generateHints": isBool 822 "generateHints": isBool
827 }); 823 });
828 824
829 /** 825 /**
830 * AnalysisService 826 * AnalysisService
831 * 827 *
(...skipping 28 matching lines...) Expand all
860 "analyzing": isBool 856 "analyzing": isBool
861 }, optionalFields: { 857 }, optionalFields: {
862 "analysisTarget": isString 858 "analysisTarget": isString
863 }); 859 });
864 860
865 /** 861 /**
866 * ChangeContentOverlay 862 * ChangeContentOverlay
867 * 863 *
868 * { 864 * {
869 * "type": "change" 865 * "type": "change"
870 * "offset": int 866 * "edits": List<SourceEdit>
871 * "length": int
872 * "replacement": String
873 * } 867 * }
874 */ 868 */
875 final Matcher isChangeContentOverlay = new MatchesJsonObject( 869 final Matcher isChangeContentOverlay = new MatchesJsonObject(
876 "ChangeContentOverlay", { 870 "ChangeContentOverlay", {
877 "type": equals("change"), 871 "type": equals("change"),
878 "offset": isInt, 872 "edits": isListOf(isSourceEdit)
879 "length": isInt,
880 "replacement": isString
881 }); 873 });
882 874
883 /** 875 /**
884 * CompletionId 876 * CompletionId
885 * 877 *
886 * String 878 * String
887 */ 879 */
888 final Matcher isCompletionId = isString; 880 final Matcher isCompletionId = isString;
889 881
890 /** 882 /**
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after
1866 * 1858 *
1867 * { 1859 * {
1868 * "newName": String 1860 * "newName": String
1869 * } 1861 * }
1870 */ 1862 */
1871 final Matcher isRenameOptions = new MatchesJsonObject( 1863 final Matcher isRenameOptions = new MatchesJsonObject(
1872 "rename options", { 1864 "rename options", {
1873 "newName": isString 1865 "newName": isString
1874 }); 1866 });
1875 1867
OLDNEW
« no previous file with comments | « pkg/analysis_server/doc/api.html ('k') | pkg/analysis_server/tool/spec/spec_input.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698