Skip to content

Commit 316d1b6

Browse files
committed
Fix #465
This preserves the type when cloning an AdjacentStrings node. [email protected] Review URL: https://codereview.chromium.org/1756563002 .
1 parent 3c049a8 commit 316d1b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/dev_compiler/lib/src/info.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ class _AstCloner extends AstCloner {
9090
return clone;
9191
}
9292

93-
// TODO(jmesserly): as a workaround for analyzer <0.26.0-alpha.1.
94-
// ResolutionCopier won't copy the type, so we do it here.
93+
// TODO(vsm): ResolutionCopier is apparently not copying the type here
94+
// either.
9595
@override
96-
AwaitExpression visitAwaitExpression(AwaitExpression node) {
97-
var clone = super.visitAwaitExpression(node);
96+
AdjacentStrings visitAdjacentStrings(AdjacentStrings node) {
97+
var clone = super.visitAdjacentStrings(node);
9898
clone.staticType = node.staticType;
9999
clone.propagatedType = node.propagatedType;
100100
return clone;

0 commit comments

Comments
 (0)