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

Side by Side Diff: pkg/analysis_server/lib/src/domain_completion.dart

Issue 1310263003: Reformat code to minimize churn (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 domain.completion; 5 library domain.completion;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/completion/completion_core.dart' 9 import 'package:analysis_server/completion/completion_core.dart'
10 show CompletionRequest, CompletionResult; 10 show CompletionRequest, CompletionResult;
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 performance.setContentsAndOffset(data.data, offset); 229 performance.setContentsAndOffset(data.data, offset);
230 while (performanceList.length >= performanceListMaxLength) { 230 while (performanceList.length >= performanceListMaxLength) {
231 performanceList.removeAt(0); 231 performanceList.removeAt(0);
232 } 232 }
233 performanceList.add(performance); 233 performanceList.add(performance);
234 } 234 }
235 235
236 /** 236 /**
237 * Send completion notification results. 237 * Send completion notification results.
238 */ 238 */
239 void sendCompletionNotification(String completionId, int replacementOffset, 239 void sendCompletionNotification(
240 int replacementLength, Iterable<CompletionSuggestion> results, 240 String completionId,
241 int replacementOffset,
242 int replacementLength,
243 Iterable<CompletionSuggestion> results,
241 bool isLast) { 244 bool isLast) {
242 server.sendNotification(new CompletionResultsParams( 245 server.sendNotification(new CompletionResultsParams(
243 completionId, replacementOffset, replacementLength, results, isLast) 246 completionId, replacementOffset, replacementLength, results, isLast)
244 .toNotification()); 247 .toNotification());
245 } 248 }
246 249
247 /** 250 /**
248 * Discard the cache if a source other than the source referenced by 251 * Discard the cache if a source other than the source referenced by
249 * the cache changes or if any source is added, removed, or deleted. 252 * the cache changes or if any source is added, removed, or deleted.
250 */ 253 */
(...skipping 23 matching lines...) Expand all
274 if (_sourcesChangedSubscription != null) { 277 if (_sourcesChangedSubscription != null) {
275 _sourcesChangedSubscription.cancel(); 278 _sourcesChangedSubscription.cancel();
276 _sourcesChangedSubscription = null; 279 _sourcesChangedSubscription = null;
277 } 280 }
278 if (_manager != null) { 281 if (_manager != null) {
279 _manager.dispose(); 282 _manager.dispose();
280 _manager = null; 283 _manager = null;
281 } 284 }
282 } 285 }
283 } 286 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/context_manager.dart ('k') | pkg/analysis_server/lib/src/domain_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698