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

Side by Side Diff: pkg/analysis_server/lib/src/services/correction/fix.dart

Issue 2707223003: Missing @required arg quick fix improvements. (Closed)
Patch Set: 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 library analysis_server.src.services.correction.fix; 5 library analysis_server.src.services.correction.fix;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/plugin/edit/fix/fix_core.dart'; 9 import 'package:analysis_server/plugin/edit/fix/fix_core.dart';
10 import 'package:analysis_server/src/plugin/server_plugin.dart'; 10 import 'package:analysis_server/src/plugin/server_plugin.dart';
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 const FixKind('ADD_ASYNC', 50, "Add 'async' modifier"); 117 const FixKind('ADD_ASYNC', 50, "Add 'async' modifier");
118 static const ADD_FIELD_FORMAL_PARAMETERS = const FixKind( 118 static const ADD_FIELD_FORMAL_PARAMETERS = const FixKind(
119 'ADD_FIELD_FORMAL_PARAMETERS', 30, "Add final field formal parameters"); 119 'ADD_FIELD_FORMAL_PARAMETERS', 30, "Add final field formal parameters");
120 static const ADD_MISSING_PARAMETER_POSITIONAL = const FixKind( 120 static const ADD_MISSING_PARAMETER_POSITIONAL = const FixKind(
121 'ADD_MISSING_PARAMETER_POSITIONAL', 121 'ADD_MISSING_PARAMETER_POSITIONAL',
122 31, 122 31,
123 "Add optional positional parameter"); 123 "Add optional positional parameter");
124 static const ADD_MISSING_PARAMETER_REQUIRED = const FixKind( 124 static const ADD_MISSING_PARAMETER_REQUIRED = const FixKind(
125 'ADD_MISSING_PARAMETER_REQUIRED', 30, "Add required parameter"); 125 'ADD_MISSING_PARAMETER_REQUIRED', 30, "Add required parameter");
126 static const ADD_MISSING_REQUIRED_ARGUMENT = const FixKind( 126 static const ADD_MISSING_REQUIRED_ARGUMENT = const FixKind(
127 'ADD_MISSING_REQUIRED_ARGUMENT', 30, "Add required argument"); 127 'ADD_MISSING_REQUIRED_ARGUMENT', 30, "Add required argument '{0}'");
128 static const ADD_NE_NULL = const FixKind('ADD_NE_NULL', 50, "Add != null"); 128 static const ADD_NE_NULL = const FixKind('ADD_NE_NULL', 50, "Add != null");
129 static const ADD_PACKAGE_DEPENDENCY = const FixKind( 129 static const ADD_PACKAGE_DEPENDENCY = const FixKind(
130 'ADD_PACKAGE_DEPENDENCY', 50, "Add dependency on package '{0}'"); 130 'ADD_PACKAGE_DEPENDENCY', 50, "Add dependency on package '{0}'");
131 static const ADD_SUPER_CONSTRUCTOR_INVOCATION = const FixKind( 131 static const ADD_SUPER_CONSTRUCTOR_INVOCATION = const FixKind(
132 'ADD_SUPER_CONSTRUCTOR_INVOCATION', 132 'ADD_SUPER_CONSTRUCTOR_INVOCATION',
133 50, 133 50,
134 "Add super constructor {0} invocation"); 134 "Add super constructor {0} invocation");
135 static const CHANGE_TO = const FixKind('CHANGE_TO', 49, "Change to '{0}'"); 135 static const CHANGE_TO = const FixKind('CHANGE_TO', 49, "Change to '{0}'");
136 static const CHANGE_TO_STATIC_ACCESS = const FixKind( 136 static const CHANGE_TO_STATIC_ACCESS = const FixKind(
137 'CHANGE_TO_STATIC_ACCESS', 50, "Change access to static using '{0}'"); 137 'CHANGE_TO_STATIC_ACCESS', 50, "Change access to static using '{0}'");
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 @override 243 @override
244 final AnalysisError error; 244 final AnalysisError error;
245 245
246 FixContextImpl(this.resourceProvider, this.analysisContext, this.error); 246 FixContextImpl(this.resourceProvider, this.analysisContext, this.error);
247 247
248 FixContextImpl.from(FixContext other) 248 FixContextImpl.from(FixContext other)
249 : resourceProvider = other.resourceProvider, 249 : resourceProvider = other.resourceProvider,
250 analysisContext = other.analysisContext, 250 analysisContext = other.analysisContext,
251 error = other.error; 251 error = other.error;
252 } 252 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698