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

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

Issue 531153002: Clarify type names in 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 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 final Matcher isEditGetFixesParams = new LazyMatcher(() => new MatchesJsonObject ( 608 final Matcher isEditGetFixesParams = new LazyMatcher(() => new MatchesJsonObject (
609 "edit.getFixes params", { 609 "edit.getFixes params", {
610 "file": isFilePath, 610 "file": isFilePath,
611 "offset": isInt 611 "offset": isInt
612 })); 612 }));
613 613
614 /** 614 /**
615 * edit.getFixes result 615 * edit.getFixes result
616 * 616 *
617 * { 617 * {
618 * "fixes": List<ErrorFixes> 618 * "fixes": List<AnalysisErrorFixes>
619 * } 619 * }
620 */ 620 */
621 final Matcher isEditGetFixesResult = new LazyMatcher(() => new MatchesJsonObject ( 621 final Matcher isEditGetFixesResult = new LazyMatcher(() => new MatchesJsonObject (
622 "edit.getFixes result", { 622 "edit.getFixes result", {
623 "fixes": isListOf(isErrorFixes) 623 "fixes": isListOf(isAnalysisErrorFixes)
624 })); 624 }));
625 625
626 /** 626 /**
627 * edit.getRefactoring params 627 * edit.getRefactoring params
628 * 628 *
629 * { 629 * {
630 * "kind": RefactoringKind 630 * "kind": RefactoringKind
631 * "file": FilePath 631 * "file": FilePath
632 * "offset": int 632 * "offset": int
633 * "length": int 633 * "length": int
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 final Matcher isAddContentOverlay = new LazyMatcher(() => new MatchesJsonObject( 781 final Matcher isAddContentOverlay = new LazyMatcher(() => new MatchesJsonObject(
782 "AddContentOverlay", { 782 "AddContentOverlay", {
783 "type": equals("add"), 783 "type": equals("add"),
784 "content": isString 784 "content": isString
785 })); 785 }));
786 786
787 /** 787 /**
788 * AnalysisError 788 * AnalysisError
789 * 789 *
790 * { 790 * {
791 * "severity": ErrorSeverity 791 * "severity": AnalysisErrorSeverity
792 * "type": ErrorType 792 * "type": AnalysisErrorType
793 * "location": Location 793 * "location": Location
794 * "message": String 794 * "message": String
795 * "correction": optional String 795 * "correction": optional String
796 * } 796 * }
797 */ 797 */
798 final Matcher isAnalysisError = new LazyMatcher(() => new MatchesJsonObject( 798 final Matcher isAnalysisError = new LazyMatcher(() => new MatchesJsonObject(
799 "AnalysisError", { 799 "AnalysisError", {
800 "severity": isErrorSeverity, 800 "severity": isAnalysisErrorSeverity,
801 "type": isErrorType, 801 "type": isAnalysisErrorType,
802 "location": isLocation, 802 "location": isLocation,
803 "message": isString 803 "message": isString
804 }, optionalFields: { 804 }, optionalFields: {
805 "correction": isString 805 "correction": isString
806 })); 806 }));
807 807
808 /** 808 /**
809 * AnalysisErrorFixes
810 *
811 * {
812 * "error": AnalysisError
813 * "fixes": List<SourceChange>
814 * }
815 */
816 final Matcher isAnalysisErrorFixes = new LazyMatcher(() => new MatchesJsonObject (
817 "AnalysisErrorFixes", {
818 "error": isAnalysisError,
819 "fixes": isListOf(isSourceChange)
820 }));
821
822 /**
823 * AnalysisErrorSeverity
824 *
825 * enum {
826 * INFO
827 * WARNING
828 * ERROR
829 * }
830 */
831 final Matcher isAnalysisErrorSeverity = new MatchesEnum("AnalysisErrorSeverity", [
832 "INFO",
833 "WARNING",
834 "ERROR"
835 ]);
836
837 /**
838 * AnalysisErrorType
839 *
840 * enum {
841 * COMPILE_TIME_ERROR
842 * HINT
843 * STATIC_TYPE_WARNING
844 * STATIC_WARNING
845 * SYNTACTIC_ERROR
846 * TODO
847 * }
848 */
849 final Matcher isAnalysisErrorType = new MatchesEnum("AnalysisErrorType", [
850 "COMPILE_TIME_ERROR",
851 "HINT",
852 "STATIC_TYPE_WARNING",
853 "STATIC_WARNING",
854 "SYNTACTIC_ERROR",
855 "TODO"
856 ]);
857
858 /**
809 * AnalysisOptions 859 * AnalysisOptions
810 * 860 *
811 * { 861 * {
812 * "enableAsync": optional bool 862 * "enableAsync": optional bool
813 * "enableDeferredLoading": optional bool 863 * "enableDeferredLoading": optional bool
814 * "enableEnums": optional bool 864 * "enableEnums": optional bool
815 * "generateDart2jsHints": optional bool 865 * "generateDart2jsHints": optional bool
816 * "generateHints": optional bool 866 * "generateHints": optional bool
817 * } 867 * }
818 */ 868 */
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 "PARAMETER", 1121 "PARAMETER",
1072 "SETTER", 1122 "SETTER",
1073 "TOP_LEVEL_VARIABLE", 1123 "TOP_LEVEL_VARIABLE",
1074 "TYPE_PARAMETER", 1124 "TYPE_PARAMETER",
1075 "UNIT_TEST_GROUP", 1125 "UNIT_TEST_GROUP",
1076 "UNIT_TEST_TEST", 1126 "UNIT_TEST_TEST",
1077 "UNKNOWN" 1127 "UNKNOWN"
1078 ]); 1128 ]);
1079 1129
1080 /** 1130 /**
1081 * ErrorFixes
1082 *
1083 * {
1084 * "error": AnalysisError
1085 * "fixes": List<SourceChange>
1086 * }
1087 */
1088 final Matcher isErrorFixes = new LazyMatcher(() => new MatchesJsonObject(
1089 "ErrorFixes", {
1090 "error": isAnalysisError,
1091 "fixes": isListOf(isSourceChange)
1092 }));
1093
1094 /**
1095 * ErrorSeverity
1096 *
1097 * enum {
1098 * INFO
1099 * WARNING
1100 * ERROR
1101 * }
1102 */
1103 final Matcher isErrorSeverity = new MatchesEnum("ErrorSeverity", [
1104 "INFO",
1105 "WARNING",
1106 "ERROR"
1107 ]);
1108
1109 /**
1110 * ErrorType
1111 *
1112 * enum {
1113 * COMPILE_TIME_ERROR
1114 * HINT
1115 * STATIC_TYPE_WARNING
1116 * STATIC_WARNING
1117 * SYNTACTIC_ERROR
1118 * TODO
1119 * }
1120 */
1121 final Matcher isErrorType = new MatchesEnum("ErrorType", [
1122 "COMPILE_TIME_ERROR",
1123 "HINT",
1124 "STATIC_TYPE_WARNING",
1125 "STATIC_WARNING",
1126 "SYNTACTIC_ERROR",
1127 "TODO"
1128 ]);
1129
1130 /**
1131 * ExecutableFile 1131 * ExecutableFile
1132 * 1132 *
1133 * { 1133 * {
1134 * "file": FilePath 1134 * "file": FilePath
1135 * "offset": ExecutableKind 1135 * "offset": ExecutableKind
1136 * } 1136 * }
1137 */ 1137 */
1138 final Matcher isExecutableFile = new LazyMatcher(() => new MatchesJsonObject( 1138 final Matcher isExecutableFile = new LazyMatcher(() => new MatchesJsonObject(
1139 "ExecutableFile", { 1139 "ExecutableFile", {
1140 "file": isFilePath, 1140 "file": isFilePath,
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
1914 * 1914 *
1915 * { 1915 * {
1916 * "newName": String 1916 * "newName": String
1917 * } 1917 * }
1918 */ 1918 */
1919 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( 1919 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject(
1920 "rename options", { 1920 "rename options", {
1921 "newName": isString 1921 "newName": isString
1922 })); 1922 }));
1923 1923
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698