Index: pkg/analysis_server/lib/src/services/completion/dart/local_constructor_contributor.dart |
diff --git a/pkg/analysis_server/lib/src/services/completion/dart/local_constructor_contributor.dart b/pkg/analysis_server/lib/src/services/completion/dart/local_constructor_contributor.dart |
index 8778f6c22efa269307a7523616ff456e570f04ee..cef91def59fe749c234320863e08cedbf8f2a426 100644 |
--- a/pkg/analysis_server/lib/src/services/completion/dart/local_constructor_contributor.dart |
+++ b/pkg/analysis_server/lib/src/services/completion/dart/local_constructor_contributor.dart |
@@ -16,6 +16,7 @@ import 'package:analysis_server/src/services/completion/dart/local_declaration_v |
import 'package:analysis_server/src/services/completion/dart/optype.dart'; |
import 'package:analysis_server/src/services/completion/dart/suggestion_builder.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/src/dart/ast/token.dart'; |
@@ -26,8 +27,9 @@ import '../../../protocol_server.dart' |
const DYNAMIC = 'dynamic'; |
-final TypeName NO_RETURN_TYPE = new TypeName( |
- new SimpleIdentifier(new StringToken(TokenType.IDENTIFIER, '', 0)), null); |
+final TypeName NO_RETURN_TYPE = astFactory.typeName( |
+ astFactory.simpleIdentifier(new StringToken(TokenType.IDENTIFIER, '', 0)), |
+ null); |
/** |
* Create a new protocol Element for inclusion in a completion suggestion. |