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

Unified Diff: pkg/kernel/lib/testing/mock_sdk_program.dart

Issue 2874723002: Add a way to use shared CanonicalName root to deserialize Program. (Closed)
Patch Set: Add TODO for 'uriToSource'. Created 3 years, 7 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/lib/testing/mock_sdk_program.dart
diff --git a/pkg/kernel/lib/testing/mock_sdk_program.dart b/pkg/kernel/lib/testing/mock_sdk_program.dart
index 6369f41f679f825ff9df7c06a2d1d6790dfafcfe..0436a49b969dd27b24f6efa71255595f91735949 100644
--- a/pkg/kernel/lib/testing/mock_sdk_program.dart
+++ b/pkg/kernel/lib/testing/mock_sdk_program.dart
@@ -63,5 +63,5 @@ Program createMockSdkProgram() {
addClass(asyncLib, class_('Stream', typeParameters: [typeParam('T')]));
addClass(internalLib, class_('Symbol'));
- return new Program([coreLib, asyncLib, internalLib]);
+ return new Program(libraries: [coreLib, asyncLib, internalLib]);
}

Powered by Google App Engine
This is Rietveld 408576698