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

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

Issue 2703033002: Add a diagnostic.getServerPort analysis server request. (Closed)
Patch Set: nits to the spec doc Created 3 years, 10 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) 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 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 * { 1046 * {
1047 * "contexts": List<ContextData> 1047 * "contexts": List<ContextData>
1048 * } 1048 * }
1049 */ 1049 */
1050 final Matcher isDiagnosticGetDiagnosticsResult = new LazyMatcher(() => new Match esJsonObject( 1050 final Matcher isDiagnosticGetDiagnosticsResult = new LazyMatcher(() => new Match esJsonObject(
1051 "diagnostic.getDiagnostics result", { 1051 "diagnostic.getDiagnostics result", {
1052 "contexts": isListOf(isContextData) 1052 "contexts": isListOf(isContextData)
1053 })); 1053 }));
1054 1054
1055 /** 1055 /**
1056 * diagnostic.getServerPort params
1057 */
1058 final Matcher isDiagnosticGetServerPortParams = isNull;
1059
1060 /**
1061 * diagnostic.getServerPort result
1062 *
1063 * {
1064 * "port": int
1065 * }
1066 */
1067 final Matcher isDiagnosticGetServerPortResult = new LazyMatcher(() => new Matche sJsonObject(
1068 "diagnostic.getServerPort result", {
1069 "port": isInt
1070 }));
1071
1072 /**
1056 * AddContentOverlay 1073 * AddContentOverlay
1057 * 1074 *
1058 * { 1075 * {
1059 * "type": "add" 1076 * "type": "add"
1060 * "content": String 1077 * "content": String
1061 * } 1078 * }
1062 */ 1079 */
1063 final Matcher isAddContentOverlay = new LazyMatcher(() => new MatchesJsonObject( 1080 final Matcher isAddContentOverlay = new LazyMatcher(() => new MatchesJsonObject(
1064 "AddContentOverlay", { 1081 "AddContentOverlay", {
1065 "type": equals("add"), 1082 "type": equals("add"),
(...skipping 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after
2096 "message": isString 2113 "message": isString
2097 }, optionalFields: { 2114 }, optionalFields: {
2098 "stackTrace": isString 2115 "stackTrace": isString
2099 })); 2116 }));
2100 2117
2101 /** 2118 /**
2102 * RequestErrorCode 2119 * RequestErrorCode
2103 * 2120 *
2104 * enum { 2121 * enum {
2105 * CONTENT_MODIFIED 2122 * CONTENT_MODIFIED
2123 * DEBUG_PORT_COULD_NOT_BE_OPENED
2106 * FILE_NOT_ANALYZED 2124 * FILE_NOT_ANALYZED
2107 * FORMAT_INVALID_FILE 2125 * FORMAT_INVALID_FILE
2108 * FORMAT_WITH_ERRORS 2126 * FORMAT_WITH_ERRORS
2109 * GET_ERRORS_INVALID_FILE 2127 * GET_ERRORS_INVALID_FILE
2110 * GET_NAVIGATION_INVALID_FILE 2128 * GET_NAVIGATION_INVALID_FILE
2111 * GET_REACHABLE_SOURCES_INVALID_FILE 2129 * GET_REACHABLE_SOURCES_INVALID_FILE
2112 * INVALID_ANALYSIS_ROOT 2130 * INVALID_ANALYSIS_ROOT
2113 * INVALID_EXECUTION_CONTEXT 2131 * INVALID_EXECUTION_CONTEXT
2114 * INVALID_FILE_PATH_FORMAT 2132 * INVALID_FILE_PATH_FORMAT
2115 * INVALID_OVERLAY_CHANGE 2133 * INVALID_OVERLAY_CHANGE
2116 * INVALID_PARAMETER 2134 * INVALID_PARAMETER
2117 * INVALID_REQUEST 2135 * INVALID_REQUEST
2118 * NO_INDEX_GENERATED 2136 * NO_INDEX_GENERATED
2119 * ORGANIZE_DIRECTIVES_ERROR 2137 * ORGANIZE_DIRECTIVES_ERROR
2120 * REFACTORING_REQUEST_CANCELLED 2138 * REFACTORING_REQUEST_CANCELLED
2121 * SERVER_ALREADY_STARTED 2139 * SERVER_ALREADY_STARTED
2122 * SERVER_ERROR 2140 * SERVER_ERROR
2123 * SORT_MEMBERS_INVALID_FILE 2141 * SORT_MEMBERS_INVALID_FILE
2124 * SORT_MEMBERS_PARSE_ERRORS 2142 * SORT_MEMBERS_PARSE_ERRORS
2125 * UNANALYZED_PRIORITY_FILES 2143 * UNANALYZED_PRIORITY_FILES
2126 * UNKNOWN_REQUEST 2144 * UNKNOWN_REQUEST
2127 * UNKNOWN_SOURCE 2145 * UNKNOWN_SOURCE
2128 * UNSUPPORTED_FEATURE 2146 * UNSUPPORTED_FEATURE
2129 * } 2147 * }
2130 */ 2148 */
2131 final Matcher isRequestErrorCode = new MatchesEnum("RequestErrorCode", [ 2149 final Matcher isRequestErrorCode = new MatchesEnum("RequestErrorCode", [
2132 "CONTENT_MODIFIED", 2150 "CONTENT_MODIFIED",
2151 "DEBUG_PORT_COULD_NOT_BE_OPENED",
2133 "FILE_NOT_ANALYZED", 2152 "FILE_NOT_ANALYZED",
2134 "FORMAT_INVALID_FILE", 2153 "FORMAT_INVALID_FILE",
2135 "FORMAT_WITH_ERRORS", 2154 "FORMAT_WITH_ERRORS",
2136 "GET_ERRORS_INVALID_FILE", 2155 "GET_ERRORS_INVALID_FILE",
2137 "GET_NAVIGATION_INVALID_FILE", 2156 "GET_NAVIGATION_INVALID_FILE",
2138 "GET_REACHABLE_SOURCES_INVALID_FILE", 2157 "GET_REACHABLE_SOURCES_INVALID_FILE",
2139 "INVALID_ANALYSIS_ROOT", 2158 "INVALID_ANALYSIS_ROOT",
2140 "INVALID_EXECUTION_CONTEXT", 2159 "INVALID_EXECUTION_CONTEXT",
2141 "INVALID_FILE_PATH_FORMAT", 2160 "INVALID_FILE_PATH_FORMAT",
2142 "INVALID_OVERLAY_CHANGE", 2161 "INVALID_OVERLAY_CHANGE",
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
2484 * 2503 *
2485 * { 2504 * {
2486 * "newName": String 2505 * "newName": String
2487 * } 2506 * }
2488 */ 2507 */
2489 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( 2508 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject(
2490 "rename options", { 2509 "rename options", {
2491 "newName": isString 2510 "newName": isString
2492 })); 2511 }));
2493 2512
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/integration/integration_test_methods.dart ('k') | pkg/analysis_server/test/socket_server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698