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

Unified Diff: test/codegen/expect/covariance.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/constructors.txt ('k') | test/codegen/expect/covariance.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/covariance.js
diff --git a/test/codegen/expect/covariance.js b/test/codegen/expect/covariance.js
index 62d95197dc641fe4fe3290a17416f863104a545d..ff487a9d52924f1ca17209cd226cd1f4ea208f8e 100644
--- a/test/codegen/expect/covariance.js
+++ b/test/codegen/expect/covariance.js
@@ -1,12 +1,13 @@
dart_library.library('covariance', null, /* Imports */[
- 'dart/_runtime',
- 'dart/core'
-], /* Lazy imports */[
-], function(exports, dart, core) {
+ 'dart_sdk'
+], function(exports, dart_sdk) {
'use strict';
- let dartx = dart.dartx;
+ const core = dart_sdk.core;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const covariance = Object.create(null);
const _t = Symbol('_t');
- const Foo$ = dart.generic(function(T) {
+ covariance.Foo$ = dart.generic(T => {
class Foo extends core.Object {
Foo() {
this[_t] = null;
@@ -28,8 +29,8 @@ dart_library.library('covariance', null, /* Imports */[
});
return Foo;
});
- let Foo = Foo$();
- class Bar extends Foo$(core.int) {
+ covariance.Foo = covariance.Foo$();
+ covariance.Bar = class Bar extends covariance.Foo$(core.int) {
Bar() {
super.Foo();
}
@@ -37,18 +38,15 @@ dart_library.library('covariance', null, /* Imports */[
core.print(`Bar.add got ${x}`);
super.add(x);
}
- }
- dart.setSignature(Bar, {
+ };
+ dart.setSignature(covariance.Bar, {
methods: () => ({add: [dart.dynamic, [core.int]]})
});
- function main() {
- let foo = new Bar();
+ covariance.main = function() {
+ let foo = new covariance.Bar();
foo.add('hi');
- }
- dart.fn(main);
+ };
+ dart.fn(covariance.main);
// Exports:
- exports.Foo$ = Foo$;
- exports.Foo = Foo;
- exports.Bar = Bar;
- exports.main = main;
+ exports.covariance = covariance;
});
« no previous file with comments | « test/codegen/expect/constructors.txt ('k') | test/codegen/expect/covariance.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698