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

Unified Diff: test/codegen/expect/temps.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/syncstar_syntax.txt ('k') | test/codegen/expect/temps.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/temps.js
diff --git a/test/codegen/expect/temps.js b/test/codegen/expect/temps.js
index 1969b93dc6d69a35dd68d6c40917d595abb8a722..dfb51975261af1aa89b9e12f737d685555e3223d 100644
--- a/test/codegen/expect/temps.js
+++ b/test/codegen/expect/temps.js
@@ -1,25 +1,26 @@
dart_library.library('temps', 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 temps = Object.create(null);
const _x = Symbol('_x');
const __x = Symbol('__x');
const _function = Symbol('_function');
- class FormalCollision extends core.Object {
+ temps.FormalCollision = class FormalCollision extends core.Object {
FormalCollision(x, _x$, func) {
this[_x] = x;
this[__x] = _x$;
this[_function] = func;
}
- }
- dart.setSignature(FormalCollision, {
- constructors: () => ({FormalCollision: [FormalCollision, [core.int, core.int, core.Function]]})
+ };
+ dart.setSignature(temps.FormalCollision, {
+ constructors: () => ({FormalCollision: [temps.FormalCollision, [core.int, core.int, core.Function]]})
});
const _opt = Symbol('_opt');
- class OptionalArg extends core.Object {
+ temps.OptionalArg = class OptionalArg extends core.Object {
OptionalArg(opt) {
if (opt === void 0) opt = 123;
this[_opt] = opt;
@@ -30,22 +31,20 @@ dart_library.library('temps', null, /* Imports */[
this.opt = opt;
this[_opt] = null;
}
- }
- dart.defineNamedConstructor(OptionalArg, 'named');
- dart.setSignature(OptionalArg, {
+ };
+ dart.defineNamedConstructor(temps.OptionalArg, 'named');
+ dart.setSignature(temps.OptionalArg, {
constructors: () => ({
- OptionalArg: [OptionalArg, [], [core.int]],
- named: [OptionalArg, [], {opt: core.int}]
+ OptionalArg: [temps.OptionalArg, [], [core.int]],
+ named: [temps.OptionalArg, [], {opt: core.int}]
})
});
- function main() {
- core.print(new FormalCollision(1, 2, dart.fn(x => x)));
- core.print(new OptionalArg()[_opt]);
- core.print(new OptionalArg.named()[_opt]);
- }
- dart.fn(main);
+ temps.main = function() {
+ core.print(new temps.FormalCollision(1, 2, dart.fn(x => x)));
+ core.print(new temps.OptionalArg()[_opt]);
+ core.print(new temps.OptionalArg.named()[_opt]);
+ };
+ dart.fn(temps.main);
// Exports:
- exports.FormalCollision = FormalCollision;
- exports.OptionalArg = OptionalArg;
- exports.main = main;
+ exports.temps = temps;
});
« no previous file with comments | « test/codegen/expect/syncstar_syntax.txt ('k') | test/codegen/expect/temps.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698