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 f0c2b3a11928a83f495f154e2c8bd84be57bd222..adf26c7ab6f3b49a889206add424688f459716e4 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,6 +5,7 @@ |
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'; |
@@ -15,8 +16,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 = new TypeName( |
- new SimpleIdentifier( |
+ static final TypeName STACKTRACE_TYPE = astFactory.typeName( |
+ astFactory.simpleIdentifier( |
new StringToken(TokenType.IDENTIFIER, 'StackTrace', 0)), |
null); |