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 a5cdc02110276688ec6cec9faece95266d36f6eb..7994891952d448b86ed51ad2eb3e34440730cfc8 100644 |
--- a/pkg/dart2js_incremental/lib/library_updater.dart |
+++ b/pkg/dart2js_incremental/lib/library_updater.dart |
@@ -683,7 +683,7 @@ class LibraryUpdater extends JsFeatures { |
PartialFunctionElement before, |
PartialFunctionElement after) { |
FunctionExpression node = |
- after.parseNode(compiler.parsing).asFunctionExpression(); |
+ after.parseNode(compiler.parsingContext).asFunctionExpression(); |
if (node == null) { |
return cannotReuse(after, "Not a function expression: '$node'"); |
} |
@@ -705,7 +705,7 @@ class LibraryUpdater extends JsFeatures { |
Token diffToken, |
PartialClassElement before, |
PartialClassElement after) { |
- ClassNode node = after.parseNode(compiler.parsing).asClassNode(); |
+ ClassNode node = after.parseNode(compiler.parsingContext).asClassNode(); |
if (node == null) { |
return cannotReuse(after, "Not a ClassNode: '$node'"); |
} |