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

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

Issue 551933003: rename completion class (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/completion/imported_computer.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 test.services.completion.dart; 5 library test.services.completion.dart;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/protocol.dart'; 9 import 'package:analysis_server/src/protocol.dart';
10 import 'package:analysis_server/src/services/completion/completion_manager.dart' ; 10 import 'package:analysis_server/src/services/completion/completion_manager.dart' ;
11 import 'package:analysis_server/src/services/completion/imported_type_computer.d art'; 11 import 'package:analysis_server/src/services/completion/imported_computer.dart';
12 import 'package:analysis_server/src/services/completion/invocation_computer.dart '; 12 import 'package:analysis_server/src/services/completion/invocation_computer.dart ';
13 import 'package:analysis_server/src/services/completion/keyword_computer.dart'; 13 import 'package:analysis_server/src/services/completion/keyword_computer.dart';
14 import 'package:analysis_server/src/services/completion/local_computer.dart'; 14 import 'package:analysis_server/src/services/completion/local_computer.dart';
15 import 'package:analysis_server/src/services/search/search_engine.dart'; 15 import 'package:analysis_server/src/services/search/search_engine.dart';
16 import 'package:analyzer/src/generated/ast.dart'; 16 import 'package:analyzer/src/generated/ast.dart';
17 import 'package:analyzer/src/generated/element.dart'; 17 import 'package:analyzer/src/generated/element.dart';
18 import 'package:analyzer/src/generated/engine.dart'; 18 import 'package:analyzer/src/generated/engine.dart';
19 import 'package:analyzer/src/generated/source.dart'; 19 import 'package:analyzer/src/generated/source.dart';
20 20
21 /** 21 /**
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 } 103 }
104 104
105 /** 105 /**
106 * Build and initialize the list of completion computers 106 * Build and initialize the list of completion computers
107 */ 107 */
108 void initComputers() { 108 void initComputers() {
109 if (computers == null) { 109 if (computers == null) {
110 computers = [ 110 computers = [
111 new KeywordComputer(), 111 new KeywordComputer(),
112 new LocalComputer(), 112 new LocalComputer(),
113 new ImportedTypeComputer(), 113 new ImportedComputer(),
114 new InvocationComputer()]; 114 new InvocationComputer()];
115 } 115 }
116 } 116 }
117 117
118 /** 118 /**
119 * Send the current list of suggestions to the client. 119 * Send the current list of suggestions to the client.
120 */ 120 */
121 void sendResults(bool last) { 121 void sendResults(bool last) {
122 controller.add( 122 controller.add(
123 new CompletionResult( 123 new CompletionResult(
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 _ReplacementOffsetBuilder(this.request) { 221 _ReplacementOffsetBuilder(this.request) {
222 request.replacementOffset = request.offset; 222 request.replacementOffset = request.offset;
223 request.replacementLength = 0; 223 request.replacementLength = 0;
224 } 224 }
225 225
226 visitSimpleIdentifier(SimpleIdentifier node) { 226 visitSimpleIdentifier(SimpleIdentifier node) {
227 request.replacementOffset = node.offset; 227 request.replacementOffset = node.offset;
228 request.replacementLength = node.length; 228 request.replacementLength = node.length;
229 } 229 }
230 } 230 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/completion/imported_computer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698