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

Unified Diff: pkg/kernel/test/closures/suite.dart

Issue 2938773003: Add transformLibraries for closure conversion (Closed)
Patch Set: Merge-in lastest changes in master (f71e6fd49b) Created 3 years, 6 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
Index: pkg/kernel/test/closures/suite.dart
diff --git a/pkg/kernel/test/closures/suite.dart b/pkg/kernel/test/closures/suite.dart
index 3f66f338c7cbd6eea283e02f268a2fd8c6590e79..6e246fac176b28f27ade41622041c5ab8fd0d1da 100644
--- a/pkg/kernel/test/closures/suite.dart
+++ b/pkg/kernel/test/closures/suite.dart
@@ -16,7 +16,7 @@ import 'package:testing/testing.dart'
import 'package:front_end/src/fasta/testing/patched_sdk_location.dart'
show computePatchedSdk;
-import 'package:kernel/ast.dart' show Program;
+import 'package:kernel/ast.dart' show Program, Library;
import 'package:kernel/transformations/closure_conversion.dart'
as closure_conversion;
@@ -133,7 +133,9 @@ class ClosureConversion
Program program, ClosureConversionContext testContext) async {
try {
CoreTypes coreTypes = new CoreTypes(program);
- program = closure_conversion.transformProgram(coreTypes, program);
+ Library library = program.libraries
+ .firstWhere((Library library) => library.importUri.scheme != "dart");
+ closure_conversion.transformLibraries(coreTypes, <Library>[library]);
return pass(program);
} catch (e, s) {
return crash(e, s);
« no previous file with comments | « pkg/kernel/lib/transformations/closure_conversion.dart ('k') | pkg/kernel/testcases/closures/instance_tear_off.dart.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698