Index: pkg/analysis_server/lib/src/services/completion/dart/label_contributor.dart |
diff --git a/pkg/analysis_server/lib/src/services/completion/dart/label_contributor.dart b/pkg/analysis_server/lib/src/services/completion/dart/label_contributor.dart |
index a540887fd608f59f79abfcbb0560860f18a94f29..8600be2e9ea04cdb373a8da51399ee1fb3e6b4e4 100644 |
--- a/pkg/analysis_server/lib/src/services/completion/dart/label_contributor.dart |
+++ b/pkg/analysis_server/lib/src/services/completion/dart/label_contributor.dart |
@@ -15,7 +15,6 @@ import 'package:analysis_server/src/services/completion/dart/local_declaration_v |
show LocalDeclarationVisitor; |
import 'package:analysis_server/src/services/completion/dart/optype.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/src/dart/ast/token.dart'; |
import 'package:analyzer/src/generated/source.dart'; |
@@ -25,9 +24,8 @@ import '../../../protocol_server.dart' |
const DYNAMIC = 'dynamic'; |
-final TypeName NO_RETURN_TYPE = astFactory.typeName( |
- astFactory.simpleIdentifier(new StringToken(TokenType.IDENTIFIER, '', 0)), |
- null); |
+final TypeName NO_RETURN_TYPE = new TypeName( |
+ new SimpleIdentifier(new StringToken(TokenType.IDENTIFIER, '', 0)), null); |
/** |
* Create a new protocol Element for inclusion in a completion suggestion. |