Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(451)

Unified Diff: lib/src/info.dart

Issue 1757343002: upgrade to latest analyzer (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/codegen/side_effect_analysis.dart ('k') | lib/src/options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/info.dart
diff --git a/lib/src/info.dart b/lib/src/info.dart
index e17b098b06c0750073ab59108b001881e476cdb4..7b9e83608d04fe18c32c4edce72495977a811b2c 100644
--- a/lib/src/info.dart
+++ b/lib/src/info.dart
@@ -5,7 +5,9 @@
/// Defines static information collected by the type checker and used later by
/// emitters to generate code.
-import 'package:analyzer/src/generated/ast.dart';
+import 'package:analyzer/dart/ast/ast.dart';
+import 'package:analyzer/src/dart/ast/ast.dart';
+import 'package:analyzer/src/dart/ast/utilities.dart';
import 'package:analyzer/src/generated/element.dart';
import 'package:analyzer/src/generated/parser.dart';
@@ -90,13 +92,21 @@ class _AstCloner extends AstCloner {
return clone;
}
- // TODO(vsm): ResolutionCopier is apparently not copying the type here
- // either.
+ // TODO(jmesserly): ResolutionCopier is not copying this yet.
@override
- AdjacentStrings visitAdjacentStrings(AdjacentStrings node) {
- var clone = super.visitAdjacentStrings(node);
- clone.staticType = node.staticType;
- clone.propagatedType = node.propagatedType;
+ BlockFunctionBody visitBlockFunctionBody(BlockFunctionBody node) {
+ var clone = super.visitBlockFunctionBody(node);
+ (clone as FunctionBodyImpl).localVariableInfo =
+ (node as FunctionBodyImpl).localVariableInfo;
+ return clone;
+ }
+
+ @override
+ ExpressionFunctionBody visitExpressionFunctionBody(
+ ExpressionFunctionBody node) {
+ var clone = super.visitExpressionFunctionBody(node);
+ (clone as FunctionBodyImpl).localVariableInfo =
+ (node as FunctionBodyImpl).localVariableInfo;
return clone;
}
}
« no previous file with comments | « lib/src/codegen/side_effect_analysis.dart ('k') | lib/src/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698