Index: pkg/analyzer/lib/src/summary/resynthesize.dart |
diff --git a/pkg/analyzer/lib/src/summary/resynthesize.dart b/pkg/analyzer/lib/src/summary/resynthesize.dart |
index bee1e9ef7c0c09c82f5ce8e711680f5558a408a1..e23a2d83fd6ca6c0a92b13548c9de091a4340ec8 100644 |
--- a/pkg/analyzer/lib/src/summary/resynthesize.dart |
+++ b/pkg/analyzer/lib/src/summary/resynthesize.dart |
@@ -7,6 +7,7 @@ library summary_resynthesizer; |
import 'dart:collection'; |
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'; |
@@ -588,9 +589,9 @@ class _ConstExprBuilder { |
InterpolationElement _newInterpolationElement(Expression expr) { |
if (expr is SimpleStringLiteral) { |
- return new InterpolationString(expr.literal, expr.value); |
+ return astFactory.interpolationString(expr.literal, expr.value); |
} else { |
- return new InterpolationExpression( |
+ return astFactory.interpolationExpression( |
TokenFactory.tokenFromType(TokenType.STRING_INTERPOLATION_EXPRESSION), |
expr, |
TokenFactory.tokenFromType(TokenType.CLOSE_CURLY_BRACKET)); |
@@ -714,7 +715,7 @@ class _ConstExprBuilder { |
typeArguments = AstTestFactory.typeArgumentList(typeNames); |
} |
if (node is SimpleIdentifier) { |
- _push(new MethodInvocation( |
+ _push(astFactory.methodInvocation( |
null, |
TokenFactory.tokenFromType(TokenType.PERIOD), |
node, |