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

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

Issue 1385523002: AnalysisError `hasFix` attr (Implements #23874). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Doc typo fix. Created 5 years, 2 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 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 1022
1023 /** 1023 /**
1024 * AnalysisError 1024 * AnalysisError
1025 * 1025 *
1026 * { 1026 * {
1027 * "severity": AnalysisErrorSeverity 1027 * "severity": AnalysisErrorSeverity
1028 * "type": AnalysisErrorType 1028 * "type": AnalysisErrorType
1029 * "location": Location 1029 * "location": Location
1030 * "message": String 1030 * "message": String
1031 * "correction": optional String 1031 * "correction": optional String
1032 * "hasFix": optional bool
1032 * } 1033 * }
1033 */ 1034 */
1034 final Matcher isAnalysisError = new LazyMatcher(() => new MatchesJsonObject( 1035 final Matcher isAnalysisError = new LazyMatcher(() => new MatchesJsonObject(
1035 "AnalysisError", { 1036 "AnalysisError", {
1036 "severity": isAnalysisErrorSeverity, 1037 "severity": isAnalysisErrorSeverity,
1037 "type": isAnalysisErrorType, 1038 "type": isAnalysisErrorType,
1038 "location": isLocation, 1039 "location": isLocation,
1039 "message": isString 1040 "message": isString
1040 }, optionalFields: { 1041 }, optionalFields: {
1041 "correction": isString 1042 "correction": isString,
1043 "hasFix": isBool
1042 })); 1044 }));
1043 1045
1044 /** 1046 /**
1045 * AnalysisErrorFixes 1047 * AnalysisErrorFixes
1046 * 1048 *
1047 * { 1049 * {
1048 * "error": AnalysisError 1050 * "error": AnalysisError
1049 * "fixes": List<SourceChange> 1051 * "fixes": List<SourceChange>
1050 * } 1052 * }
1051 */ 1053 */
(...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after
2401 * 2403 *
2402 * { 2404 * {
2403 * "newName": String 2405 * "newName": String
2404 * } 2406 * }
2405 */ 2407 */
2406 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( 2408 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject(
2407 "rename options", { 2409 "rename options", {
2408 "newName": isString 2410 "newName": isString
2409 })); 2411 }));
2410 2412
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/services/correction/fix.dart ('k') | pkg/analysis_server/test/protocol_server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698