| OLD | NEW |
| 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/protocol/protocol.dart'; | 9 import 'package:analysis_server/protocol/protocol.dart'; |
| 10 import 'package:analysis_server/protocol/protocol_generated.dart'; | 10 import 'package:analysis_server/protocol/protocol_generated.dart'; |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 return; | 223 return; |
| 224 } | 224 } |
| 225 } | 225 } |
| 226 | 226 |
| 227 recordRequest(performance, context, source, params.offset); | 227 recordRequest(performance, context, source, params.offset); |
| 228 | 228 |
| 229 CompletionRequestImpl completionRequest = new CompletionRequestImpl( | 229 CompletionRequestImpl completionRequest = new CompletionRequestImpl( |
| 230 result, | 230 result, |
| 231 context, | 231 context, |
| 232 server.resourceProvider, | 232 server.resourceProvider, |
| 233 server.searchEngine, | |
| 234 source, | 233 source, |
| 235 params.offset, | 234 params.offset, |
| 236 performance, | 235 performance, |
| 237 server.ideOptions); | 236 server.ideOptions); |
| 238 | 237 |
| 239 String completionId = (_nextCompletionId++).toString(); | 238 String completionId = (_nextCompletionId++).toString(); |
| 240 | 239 |
| 241 setNewRequest(completionRequest); | 240 setNewRequest(completionRequest); |
| 242 | 241 |
| 243 // initial response without results | 242 // initial response without results |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 final int replacementOffset; | 328 final int replacementOffset; |
| 330 | 329 |
| 331 /** | 330 /** |
| 332 * The suggested completions. | 331 * The suggested completions. |
| 333 */ | 332 */ |
| 334 final List<CompletionSuggestion> suggestions; | 333 final List<CompletionSuggestion> suggestions; |
| 335 | 334 |
| 336 CompletionResult( | 335 CompletionResult( |
| 337 this.replacementOffset, this.replacementLength, this.suggestions); | 336 this.replacementOffset, this.replacementLength, this.suggestions); |
| 338 } | 337 } |
| OLD | NEW |