Index: pkg/analysis_server/lib/src/services/completion/dart/local_declaration_visitor.dart |
diff --git a/pkg/analysis_server/lib/src/services/completion/dart/local_declaration_visitor.dart b/pkg/analysis_server/lib/src/services/completion/dart/local_declaration_visitor.dart |
index adf26c7ab6f3b49a889206add424688f459716e4..f0c2b3a11928a83f495f154e2c8bd84be57bd222 100644 |
--- a/pkg/analysis_server/lib/src/services/completion/dart/local_declaration_visitor.dart |
+++ b/pkg/analysis_server/lib/src/services/completion/dart/local_declaration_visitor.dart |
@@ -5,7 +5,6 @@ |
library services.completion.dart.local.declaration.visitor; |
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/ast/visitor.dart'; |
import 'package:analyzer/src/dart/ast/token.dart'; |
@@ -16,8 +15,8 @@ import 'package:analyzer/src/dart/ast/token.dart'; |
* which catches the exception thrown by [finished()]. |
*/ |
abstract class LocalDeclarationVisitor extends GeneralizingAstVisitor { |
- static final TypeName STACKTRACE_TYPE = astFactory.typeName( |
- astFactory.simpleIdentifier( |
+ static final TypeName STACKTRACE_TYPE = new TypeName( |
+ new SimpleIdentifier( |
new StringToken(TokenType.IDENTIFIER, 'StackTrace', 0)), |
null); |