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

Side by Side Diff: test/codegen/expect/es6_modules.js

Issue 1612083002: Initial --modules=es6 support (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: addressed comments (legacy, doc) + test enum utils Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « test/codegen/es6_modules.dart ('k') | test/codegen/expect/es6_modules.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 'use strict';
2 const exports = {};
3 import dart from "dart/_runtime";
4 import core from "dart/core";
5 let dartx = dart.dartx;
6 const Callback = dart.typedef('Callback', () => dart.functionType(dart.void, [], {i: core.int}));
7 class A extends core.Object {}
8 class _A extends core.Object {}
9 const B$ = dart.generic(function(T) {
10 class B extends core.Object {}
11 return B;
12 });
13 let B = B$();
14 const _B$ = dart.generic(function(T) {
15 class _B extends core.Object {}
16 return _B;
17 });
18 let _B = _B$();
19 function f() {
20 }
21 dart.fn(f);
22 function _f() {
23 }
24 dart.fn(_f);
25 const constant = "abc";
26 exports.finalConstant = "abc";
27 exports.mutable = "abc";
28 dart.defineLazyProperties(exports, {
29 get lazy() {
30 return dart.as(dart.fn(() => {
31 core.print('lazy');
32 return "abc";
33 })(), core.String);
34 },
35 get lazyMutable() {
36 return dart.as(dart.fn(() => {
37 core.print('lazyMutable');
38 return "abc";
39 })(), core.String);
40 },
41 set lazyMutable(_) {}
42 });
43 // Exports:
44 exports.Callback = Callback;
45 exports.A = A;
46 exports.B$ = B$;
47 exports.B = B;
48 exports.f = f;
49 exports.constant = constant;
50 export default exports;
OLDNEW
« no previous file with comments | « test/codegen/es6_modules.dart ('k') | test/codegen/expect/es6_modules.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698