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

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

Issue 1407333006: Fix protocol for EXTRACT_LOCAL_VARIABLE and coveringExpressionOffsets/lengths. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 2225 matching lines...) Expand 10 before | Expand all | Expand 10 after
2236 2236
2237 /** 2237 /**
2238 * convertMethodToGetter options 2238 * convertMethodToGetter options
2239 */ 2239 */
2240 final Matcher isConvertMethodToGetterOptions = isNull; 2240 final Matcher isConvertMethodToGetterOptions = isNull;
2241 2241
2242 /** 2242 /**
2243 * extractLocalVariable feedback 2243 * extractLocalVariable feedback
2244 * 2244 *
2245 * { 2245 * {
2246 * "coveringExpressionOffsets": List<int> 2246 * "coveringExpressionOffsets": optional List<int>
2247 * "coveringExpressionLengths": List<int> 2247 * "coveringExpressionLengths": optional List<int>
2248 * "names": List<String> 2248 * "names": List<String>
2249 * "offsets": List<int> 2249 * "offsets": List<int>
2250 * "lengths": List<int> 2250 * "lengths": List<int>
2251 * } 2251 * }
2252 */ 2252 */
2253 final Matcher isExtractLocalVariableFeedback = new LazyMatcher(() => new Matches JsonObject( 2253 final Matcher isExtractLocalVariableFeedback = new LazyMatcher(() => new Matches JsonObject(
2254 "extractLocalVariable feedback", { 2254 "extractLocalVariable feedback", {
2255 "coveringExpressionOffsets": isListOf(isInt),
2256 "coveringExpressionLengths": isListOf(isInt),
2257 "names": isListOf(isString), 2255 "names": isListOf(isString),
2258 "offsets": isListOf(isInt), 2256 "offsets": isListOf(isInt),
2259 "lengths": isListOf(isInt) 2257 "lengths": isListOf(isInt)
2258 }, optionalFields: {
2259 "coveringExpressionOffsets": isListOf(isInt),
2260 "coveringExpressionLengths": isListOf(isInt)
2260 })); 2261 }));
2261 2262
2262 /** 2263 /**
2263 * extractLocalVariable options 2264 * extractLocalVariable options
2264 * 2265 *
2265 * { 2266 * {
2266 * "name": String 2267 * "name": String
2267 * "extractAll": bool 2268 * "extractAll": bool
2268 * } 2269 * }
2269 */ 2270 */
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
2409 * 2410 *
2410 * { 2411 * {
2411 * "newName": String 2412 * "newName": String
2412 * } 2413 * }
2413 */ 2414 */
2414 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( 2415 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject(
2415 "rename options", { 2416 "rename options", {
2416 "newName": isString 2417 "newName": isString
2417 })); 2418 }));
2418 2419
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698