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

Side by Side Diff: pkg/analysis_services/lib/src/generated/proposal.dart

Issue 263213007: New analysis_server snapshot and completion.dart in analysis_services. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library services.proposal; 8 library services.proposal;
9 9
10 import 'package:analyzer/src/generated/java_core.dart'; 10 import 'package:analyzer/src/generated/java_core.dart';
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 221
222 const CorrectionKind.con1(String name, int ordinal, int relevance, String mess age) : this.con2(name, ordinal, relevance, message, CorrectionImage.IMG_CORRECTI ON_CHANGE); 222 const CorrectionKind.con1(String name, int ordinal, int relevance, String mess age) : this.con2(name, ordinal, relevance, message, CorrectionImage.IMG_CORRECTI ON_CHANGE);
223 223
224 const CorrectionKind.con2(String name, int ordinal, this.relevance, this.messa ge, this.image) : super(name, ordinal); 224 const CorrectionKind.con2(String name, int ordinal, this.relevance, this.messa ge, this.image) : super(name, ordinal);
225 } 225 }
226 226
227 /** 227 /**
228 * Proposal for some change. 228 * Proposal for some change.
229 */ 229 */
230 class CorrectionProposal { 230 class CorrectionProposal {
231 /**
232 * An empty array of [CorrectionProposal]s.
233 */
234 static List<CorrectionProposal> EMPTY_ARRAY = new List<CorrectionProposal>(0);
235
231 final CorrectionKind kind; 236 final CorrectionKind kind;
232 237
233 String _name; 238 String _name;
234 239
235 CorrectionProposal(this.kind, List<Object> arguments) { 240 CorrectionProposal(this.kind, List<Object> arguments) {
236 this._name = JavaString.format(kind.message, arguments); 241 this._name = JavaString.format(kind.message, arguments);
237 } 242 }
238 243
239 /** 244 /**
240 * @return the name to display for user. 245 * @return the name to display for user.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 this._linkedPositionProposals = {}; 300 this._linkedPositionProposals = {};
296 } 301 }
297 302
298 /** 303 /**
299 * Sets the [Map] or position IDs to their locations. 304 * Sets the [Map] or position IDs to their locations.
300 */ 305 */
301 void set linkedPositions(Map<String, List<SourceRange>> linkedPositions) { 306 void set linkedPositions(Map<String, List<SourceRange>> linkedPositions) {
302 this._linkedPositions = {}; 307 this._linkedPositions = {};
303 } 308 }
304 } 309 }
OLDNEW
« no previous file with comments | « pkg/analysis_services/lib/src/generated/completion.dart ('k') | pkg/analysis_services/lib/src/generated/stubs.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698