Index: pkg/analysis_server/lib/src/services/completion/dart/completion_manager.dart |
diff --git a/pkg/analysis_server/lib/src/services/completion/dart/completion_manager.dart b/pkg/analysis_server/lib/src/services/completion/dart/completion_manager.dart |
index e00ec2a81a5be62641f16e811ae38cab38212267..26a9af5c403832e3a88932ff2ccc955f2848742a 100644 |
--- a/pkg/analysis_server/lib/src/services/completion/dart/completion_manager.dart |
+++ b/pkg/analysis_server/lib/src/services/completion/dart/completion_manager.dart |
@@ -19,6 +19,7 @@ import 'package:analysis_server/src/services/completion/dart/contribution_sorter |
import 'package:analysis_server/src/services/completion/dart/optype.dart'; |
import 'package:analysis_server/src/services/search/search_engine.dart'; |
import 'package:analyzer/dart/ast/ast.dart'; |
+import 'package:analyzer/dart/ast/standard_ast_factory.dart'; |
import 'package:analyzer/dart/ast/token.dart'; |
import 'package:analyzer/dart/element/element.dart'; |
import 'package:analyzer/dart/element/type.dart'; |
@@ -516,7 +517,8 @@ class ReplacementRange { |
} |
} |
if (token is StringToken) { |
- SimpleStringLiteral uri = new SimpleStringLiteral(token, token.lexeme); |
+ SimpleStringLiteral uri = |
+ astFactory.simpleStringLiteral(token, token.lexeme); |
Keyword keyword = token.previous?.keyword; |
if (keyword == Keyword.IMPORT || |
keyword == Keyword.EXPORT || |