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

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

Issue 608363003: Issue 19670. 'Create field' quick fix. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | Annotate | Revision Log
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 50, 55 50,
56 "Change access to static using '{0}'"); 56 "Change access to static using '{0}'");
57 static const CREATE_CLASS = 57 static const CREATE_CLASS =
58 const FixKind('CREATE_CLASS', 50, "Create class '{0}'"); 58 const FixKind('CREATE_CLASS', 50, "Create class '{0}'");
59 static const CREATE_CONSTRUCTOR = 59 static const CREATE_CONSTRUCTOR =
60 const FixKind('CREATE_CONSTRUCTOR', 50, "Create constructor '{0}'"); 60 const FixKind('CREATE_CONSTRUCTOR', 50, "Create constructor '{0}'");
61 static const CREATE_CONSTRUCTOR_SUPER = const FixKind( 61 static const CREATE_CONSTRUCTOR_SUPER = const FixKind(
62 'CREATE_CONSTRUCTOR_SUPER', 62 'CREATE_CONSTRUCTOR_SUPER',
63 50, 63 50,
64 "Create constructor to call {0}"); 64 "Create constructor to call {0}");
65 static const CREATE_FIELD =
66 const FixKind('CREATE_FIELD', 50, "Create field '{0}'");
65 static const CREATE_FILE = 67 static const CREATE_FILE =
66 const FixKind('CREATE_FILE', 50, "Create file '{0}'"); 68 const FixKind('CREATE_FILE', 50, "Create file '{0}'");
67 static const CREATE_FUNCTION = 69 static const CREATE_FUNCTION =
68 const FixKind('CREATE_FUNCTION', 49, "Create function '{0}'"); 70 const FixKind('CREATE_FUNCTION', 49, "Create function '{0}'");
69 static const CREATE_METHOD = 71 static const CREATE_METHOD =
70 const FixKind('CREATE_METHOD', 50, "Create method '{0}'"); 72 const FixKind('CREATE_METHOD', 50, "Create method '{0}'");
71 static const CREATE_MISSING_OVERRIDES = const FixKind( 73 static const CREATE_MISSING_OVERRIDES = const FixKind(
72 'CREATE_MISSING_OVERRIDES', 74 'CREATE_MISSING_OVERRIDES',
73 50, 75 50,
74 "Create {0} missing override(s)"); 76 "Create {0} missing override(s)");
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 122
121 final name; 123 final name;
122 final int relevance; 124 final int relevance;
123 final String message; 125 final String message;
124 126
125 const FixKind(this.name, this.relevance, this.message); 127 const FixKind(this.name, this.relevance, this.message);
126 128
127 @override 129 @override
128 String toString() => name; 130 String toString() => name;
129 } 131 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698