OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 library analysis_server.src.services.completion.completion_dart; |
| 6 |
| 7 import 'package:analysis_server/completion/completion_core.dart'; |
| 8 import 'package:analysis_server/completion/completion_dart.dart'; |
| 9 import 'package:analysis_server/src/services/completion/completion_core.dart'; |
| 10 import 'package:analyzer/src/generated/ast.dart'; |
| 11 |
| 12 /** |
| 13 * The information about a requested list of completions within a Dart file. |
| 14 */ |
| 15 class DartCompletionRequestImpl extends CompletionRequestImpl |
| 16 implements DartCompletionRequest { |
| 17 /** |
| 18 * The compilation unit in which the completion was requested. |
| 19 */ |
| 20 final CompilationUnit unit; |
| 21 |
| 22 /** |
| 23 * A flag indicating whether the compilation [unit] is resolved. |
| 24 */ |
| 25 final bool isResolved; |
| 26 |
| 27 /** |
| 28 * Initialize a newly created completion request based on the given arguments. |
| 29 */ |
| 30 DartCompletionRequestImpl( |
| 31 CompletionRequest request, this.unit, this.isResolved) |
| 32 : super(request.context, request.resourceProvider, request.source, |
| 33 request.offset); |
| 34 } |
OLD | NEW |