Index: tests/try/poi/apply_updates_test.dart |
diff --git a/tests/try/poi/apply_updates_test.dart b/tests/try/poi/apply_updates_test.dart |
index 361ee03f247bf1c72d0f183da543bc2a9534169d..e8c8429d3c56028f493fe6fa0f44e5bdb9600c41 100644 |
--- a/tests/try/poi/apply_updates_test.dart |
+++ b/tests/try/poi/apply_updates_test.dart |
@@ -40,7 +40,7 @@ class ApplyUpdateTestCase extends LibraryUpdaterTestCase { |
Future run() => loadMainApp().then((LibraryElement library) { |
// Capture the current version of [before] before invoking the [updater]. |
PartialFunctionElement before = library.localLookup(expectedUpdate); |
- var beforeNode = before.parseNode(compiler); |
+ var beforeNode = before.parseNode(compiler.parsing); |
var context = new IncrementalCompilerContext(); |
LibraryUpdater updater = |
@@ -56,10 +56,10 @@ class ApplyUpdateTestCase extends LibraryUpdaterTestCase { |
// Check that the [updater] didn't modify the changed element. |
Expect.identical(before, update.before); |
- Expect.identical(beforeNode, before.parseNode(compiler)); |
+ Expect.identical(beforeNode, before.parseNode(compiler.parsing)); |
PartialFunctionElement after = update.after; |
- var afterNode = after.parseNode(compiler); |
+ var afterNode = after.parseNode(compiler.parsing); |
// Check that pretty-printing the elements match [source] (before), and |
// [newSource] (after). |
@@ -72,7 +72,7 @@ class ApplyUpdateTestCase extends LibraryUpdaterTestCase { |
// Check that the update was applied by pretty-printing [before]. Make no |
// assumptions about [after], as the update may destroy that element. |
- beforeNode = before.parseNode(compiler); |
+ beforeNode = before.parseNode(compiler.parsing); |
Expect.notEquals(source, '$beforeNode'); |
Expect.stringEquals(newSource, '$beforeNode'); |
}); |