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

Side by Side Diff: pkg/analysis_server/lib/src/services/completion/dart/completion_manager.dart

Issue 2844273003: Unify the server and plugin versions of the generators (Closed)
Patch Set: add missed files Created 3 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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.completion.dart.manager; 5 library services.completion.dart.manager;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/plugin/protocol/protocol.dart'; 9 import 'package:analysis_server/protocol/protocol_generated.dart';
10 import 'package:analysis_server/src/ide_options.dart'; 10 import 'package:analysis_server/src/ide_options.dart';
11 import 'package:analysis_server/src/provisional/completion/completion_core.dart' 11 import 'package:analysis_server/src/provisional/completion/completion_core.dart'
12 show CompletionContributor, CompletionRequest; 12 show CompletionContributor, CompletionRequest;
13 import 'package:analysis_server/src/provisional/completion/dart/completion_dart. dart'; 13 import 'package:analysis_server/src/provisional/completion/dart/completion_dart. dart';
14 import 'package:analysis_server/src/provisional/completion/dart/completion_plugi n.dart'; 14 import 'package:analysis_server/src/provisional/completion/dart/completion_plugi n.dart';
15 import 'package:analysis_server/src/provisional/completion/dart/completion_targe t.dart'; 15 import 'package:analysis_server/src/provisional/completion/dart/completion_targe t.dart';
16 import 'package:analysis_server/src/services/completion/completion_core.dart'; 16 import 'package:analysis_server/src/services/completion/completion_core.dart';
17 import 'package:analysis_server/src/services/completion/completion_performance.d art'; 17 import 'package:analysis_server/src/services/completion/completion_performance.d art';
18 import 'package:analysis_server/src/services/completion/dart/common_usage_sorter .dart'; 18 import 'package:analysis_server/src/services/completion/dart/common_usage_sorter .dart';
19 import 'package:analysis_server/src/services/completion/dart/contribution_sorter .dart'; 19 import 'package:analysis_server/src/services/completion/dart/contribution_sorter .dart';
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 if (start <= requestOffset && requestOffset <= end) { 544 if (start <= requestOffset && requestOffset <= end) {
545 // Replacement range for import URI 545 // Replacement range for import URI
546 return new ReplacementRange(start, end - start); 546 return new ReplacementRange(start, end - start);
547 } 547 }
548 } 548 }
549 } 549 }
550 } 550 }
551 return new ReplacementRange(requestOffset, 0); 551 return new ReplacementRange(requestOffset, 0);
552 } 552 }
553 } 553 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698