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

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

Issue 875193002: Issue 22150. Quick fix to add a getter, in addition to create a field. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/correction/fix_internal.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 services.correction.fix; 5 library services.correction.fix;
6 6
7 import 'package:analysis_server/src/protocol.dart' show SourceChange; 7 import 'package:analysis_server/src/protocol.dart' show SourceChange;
8 import 'package:analysis_server/src/services/correction/fix_internal.dart'; 8 import 'package:analysis_server/src/services/correction/fix_internal.dart';
9 import 'package:analysis_server/src/services/search/search_engine.dart'; 9 import 'package:analysis_server/src/services/search/search_engine.dart';
10 import 'package:analyzer/src/generated/ast.dart'; 10 import 'package:analyzer/src/generated/ast.dart';
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 "Change access to static using '{0}'"); 60 "Change access to static using '{0}'");
61 static const CREATE_CLASS = 61 static const CREATE_CLASS =
62 const FixKind('CREATE_CLASS', 50, "Create class '{0}'"); 62 const FixKind('CREATE_CLASS', 50, "Create class '{0}'");
63 static const CREATE_CONSTRUCTOR = 63 static const CREATE_CONSTRUCTOR =
64 const FixKind('CREATE_CONSTRUCTOR', 50, "Create constructor '{0}'"); 64 const FixKind('CREATE_CONSTRUCTOR', 50, "Create constructor '{0}'");
65 static const CREATE_CONSTRUCTOR_SUPER = const FixKind( 65 static const CREATE_CONSTRUCTOR_SUPER = const FixKind(
66 'CREATE_CONSTRUCTOR_SUPER', 66 'CREATE_CONSTRUCTOR_SUPER',
67 50, 67 50,
68 "Create constructor to call {0}"); 68 "Create constructor to call {0}");
69 static const CREATE_FIELD = 69 static const CREATE_FIELD =
70 const FixKind('CREATE_FIELD', 50, "Create field '{0}'"); 70 const FixKind('CREATE_FIELD', 51, "Create field '{0}'");
71 static const CREATE_FILE = 71 static const CREATE_FILE =
72 const FixKind('CREATE_FILE', 50, "Create file '{0}'"); 72 const FixKind('CREATE_FILE', 50, "Create file '{0}'");
73 static const CREATE_FUNCTION = 73 static const CREATE_FUNCTION =
74 const FixKind('CREATE_FUNCTION', 51, "Create function '{0}'"); 74 const FixKind('CREATE_FUNCTION', 51, "Create function '{0}'");
75 static const CREATE_GETTER =
76 const FixKind('CREATE_GETTER', 50, "Create getter '{0}'");
75 static const CREATE_LOCAL_VARIABLE = 77 static const CREATE_LOCAL_VARIABLE =
76 const FixKind('CREATE_LOCAL_VARIABLE', 50, "Create local variable '{0}'"); 78 const FixKind('CREATE_LOCAL_VARIABLE', 50, "Create local variable '{0}'");
77 static const CREATE_METHOD = 79 static const CREATE_METHOD =
78 const FixKind('CREATE_METHOD', 50, "Create method '{0}'"); 80 const FixKind('CREATE_METHOD', 50, "Create method '{0}'");
79 static const CREATE_MISSING_OVERRIDES = const FixKind( 81 static const CREATE_MISSING_OVERRIDES = const FixKind(
80 'CREATE_MISSING_OVERRIDES', 82 'CREATE_MISSING_OVERRIDES',
81 50, 83 50,
82 "Create {0} missing override(s)"); 84 "Create {0} missing override(s)");
83 static const CREATE_NO_SUCH_METHOD = 85 static const CREATE_NO_SUCH_METHOD =
84 const FixKind('CREATE_NO_SUCH_METHOD', 51, "Create 'noSuchMethod' method") ; 86 const FixKind('CREATE_NO_SUCH_METHOD', 51, "Create 'noSuchMethod' method") ;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 130
129 final name; 131 final name;
130 final int relevance; 132 final int relevance;
131 final String message; 133 final String message;
132 134
133 const FixKind(this.name, this.relevance, this.message); 135 const FixKind(this.name, this.relevance, this.message);
134 136
135 @override 137 @override
136 String toString() => name; 138 String toString() => name;
137 } 139 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/correction/fix_internal.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698