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

Unified Diff: test/codegen/expect/extensions.js

Issue 1879373004: Implement modular compilation (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « test/codegen/expect/expect/expect.txt ('k') | test/codegen/expect/extensions.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/extensions.js
diff --git a/test/codegen/expect/extensions.js b/test/codegen/expect/extensions.js
index d830dd137f06167a02916f20c0f57974fd7ce164..9aa8d8ced40f77df23c08b38de8d1d4067034e05 100644
--- a/test/codegen/expect/extensions.js
+++ b/test/codegen/expect/extensions.js
@@ -1,25 +1,25 @@
dart_library.library('extensions', null, /* Imports */[
- 'dart/_runtime',
- 'dart/collection',
- 'dart/core'
-], /* Lazy imports */[
-], function(exports, dart, collection, core) {
+ 'dart_sdk'
+], function(exports, dart_sdk) {
'use strict';
- let dartx = dart.dartx;
- class StringIterable extends collection.IterableBase$(core.String) {
+ const core = dart_sdk.core;
+ const collection = dart_sdk.collection;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const extensions = Object.create(null);
+ extensions.StringIterable = class StringIterable extends collection.IterableBase$(core.String) {
StringIterable() {
this.iterator = null;
super.IterableBase();
}
- }
- dart.virtualField(StringIterable, 'iterator');
- dart.setSignature(StringIterable, {});
- dart.defineExtensionMembers(StringIterable, ['iterator']);
- function main() {
- return new StringIterable();
- }
- dart.fn(main);
+ };
+ dart.virtualField(extensions.StringIterable, 'iterator');
+ dart.setSignature(extensions.StringIterable, {});
+ dart.defineExtensionMembers(extensions.StringIterable, ['iterator']);
+ extensions.main = function() {
+ return new extensions.StringIterable();
+ };
+ dart.fn(extensions.main);
// Exports:
- exports.StringIterable = StringIterable;
- exports.main = main;
+ exports.extensions = extensions;
});
« no previous file with comments | « test/codegen/expect/expect/expect.txt ('k') | test/codegen/expect/extensions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698