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

Side by Side Diff: pkg/analysis_services/lib/src/generated/change.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.change; 8 library services.change;
9 9
10 import 'dart:collection';
10 import 'package:analyzer/src/generated/java_io.dart' show JavaFile; 11 import 'package:analyzer/src/generated/java_io.dart' show JavaFile;
11 import 'package:analyzer/src/generated/source.dart'; 12 import 'package:analyzer/src/generated/source.dart';
12 13
13 /** 14 /**
14 * Describes some abstract operation to perform. 15 * Describes some abstract operation to perform.
15 * 16 *
16 * [Change] implementations in "services" plugin cannot perform operation themse lves, they are 17 * [Change] implementations in "services" plugin cannot perform operation themse lves, they are
17 * just descriptions of operation. Actual operation should be performed by clien t. 18 * just descriptions of operation. Actual operation should be performed by clien t.
18 */ 19 */
19 abstract class Change { 20 abstract class Change {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 } 112 }
112 113
113 /** 114 /**
114 * [Change] to apply to single [Source]. 115 * [Change] to apply to single [Source].
115 */ 116 */
116 class SourceChange extends Change { 117 class SourceChange extends Change {
117 final Source source; 118 final Source source;
118 119
119 final List<Edit> edits = []; 120 final List<Edit> edits = [];
120 121
121 Map<String, List<Edit>> _editGroups = {}; 122 Map<String, List<Edit>> _editGroups = new LinkedHashMap();
122 123
123 /** 124 /**
124 * @param name the name of this change to display in UI 125 * @param name the name of this change to display in UI
125 * @param source the [Source] to change 126 * @param source the [Source] to change
126 */ 127 */
127 SourceChange(String name, this.source) : super(name); 128 SourceChange(String name, this.source) : super(name);
128 129
129 /** 130 /**
130 * Adds the [Edit] to apply. 131 * Adds the [Edit] to apply.
131 */ 132 */
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 } 169 }
169 170
170 /** 171 /**
171 * @return all [SourceChange] in this manager. 172 * @return all [SourceChange] in this manager.
172 */ 173 */
173 List<SourceChange> get changes { 174 List<SourceChange> get changes {
174 Iterable<SourceChange> changes = _changeMap.values; 175 Iterable<SourceChange> changes = _changeMap.values;
175 return new List.from(changes); 176 return new List.from(changes);
176 } 177 }
177 } 178 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/generated/service_interfaces.dart ('k') | pkg/analysis_services/lib/src/generated/completion.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698