Index: pkg/analysis_server/lib/src/services/completion/completion_dart.dart |
diff --git a/pkg/analysis_server/lib/src/services/completion/completion_dart.dart b/pkg/analysis_server/lib/src/services/completion/completion_dart.dart |
index 526d69d283dac4307dc7ce47475ff2763e94d9d2..430429525bff67f6fe0d1021acd209583d2a3a91 100644 |
--- a/pkg/analysis_server/lib/src/services/completion/completion_dart.dart |
+++ b/pkg/analysis_server/lib/src/services/completion/completion_dart.dart |
@@ -6,6 +6,7 @@ library analysis_server.src.services.completion.completion_dart; |
import 'package:analysis_server/completion/completion_core.dart'; |
import 'package:analysis_server/completion/completion_dart.dart'; |
+import 'package:analysis_server/completion/dart/completion_target.dart'; |
import 'package:analysis_server/src/services/completion/completion_core.dart'; |
import 'package:analyzer/src/generated/ast.dart'; |
@@ -25,10 +26,16 @@ class DartCompletionRequestImpl extends CompletionRequestImpl |
final bool isResolved; |
/** |
+ * The completion target. This determines what part of the parse tree |
+ * will receive the newly inserted text. |
+ */ |
+ final CompletionTarget target; |
+ |
+ /** |
* Initialize a newly created completion request based on the given arguments. |
*/ |
DartCompletionRequestImpl( |
- CompletionRequest request, this.unit, this.isResolved) |
+ CompletionRequest request, this.unit, this.isResolved, this.target) |
: super(request.context, request.resourceProvider, request.source, |
request.offset); |
} |