Index: pkg/dart2js_incremental/lib/library_updater.dart |
diff --git a/pkg/dart2js_incremental/lib/library_updater.dart b/pkg/dart2js_incremental/lib/library_updater.dart |
index 3499f4f577c7d56c07b74d70dfc19b43f72eec53..2cf99858adbf845f26bb60f4466bb1d4578ef27b 100644 |
--- a/pkg/dart2js_incremental/lib/library_updater.dart |
+++ b/pkg/dart2js_incremental/lib/library_updater.dart |
@@ -687,7 +687,7 @@ class LibraryUpdater extends JsFeatures { |
PartialFunctionElement before, |
PartialFunctionElement after) { |
FunctionExpression node = |
- after.parseNode(compiler).asFunctionExpression(); |
+ after.parseNode(compiler.parsing).asFunctionExpression(); |
if (node == null) { |
return cannotReuse(after, "Not a function expression: '$node'"); |
} |
@@ -709,7 +709,7 @@ class LibraryUpdater extends JsFeatures { |
Token diffToken, |
PartialClassElement before, |
PartialClassElement after) { |
- ClassNode node = after.parseNode(compiler).asClassNode(); |
+ ClassNode node = after.parseNode(compiler.parsing).asClassNode(); |
if (node == null) { |
return cannotReuse(after, "Not a ClassNode: '$node'"); |
} |