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

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

Issue 1638533004: Create local alias for super class in --closure mode (issue #312) (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: fix test Created 4 years, 10 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 | « lib/src/codegen/js_codegen.dart ('k') | tool/input_sdk/private/types.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dart_library.library('closure', null, /* Imports */[ 1 dart_library.library('closure', null, /* Imports */[
2 'dart/_runtime', 2 'dart/_runtime',
3 'dart/core', 3 'dart/core',
4 'dart/js' 4 'dart/js'
5 ], /* Lazy imports */[ 5 ], /* Lazy imports */[
6 ], function(exports, dart, core, js) { 6 ], function(exports, dart, core, js) {
7 'use strict'; 7 'use strict';
8 let dartx = dart.dartx; 8 let dartx = dart.dartx;
9 /** @typedef {function({i: (?number|undefined)}=)} */ 9 /** @typedef {function({i: (?number|undefined)}=)} */
10 const Callback = dart.typedef('Callback', () => dart.functionType(dart.void, [ ], {i: core.int})); 10 const Callback = dart.typedef('Callback', () => dart.functionType(dart.void, [ ], {i: core.int}));
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 /** @final {string} */ 110 /** @final {string} */
111 Foo.some_static_constant = "abc"; 111 Foo.some_static_constant = "abc";
112 /** @final {string} */ 112 /** @final {string} */
113 Foo.some_static_final = "abc"; 113 Foo.some_static_final = "abc";
114 /** @type {string} */ 114 /** @type {string} */
115 Foo.some_static_var = "abc"; 115 Foo.some_static_var = "abc";
116 return Foo; 116 return Foo;
117 }); 117 });
118 let Foo = Foo$(); 118 let Foo = Foo$();
119 class Bar extends core.Object {} 119 class Bar extends core.Object {}
120 class Baz extends dart.mixin(Foo$(core.int), Bar) { 120 const Baz$super = dart.mixin(Foo$(core.int), Bar);
121 class Baz extends Baz$super {
121 /** @param {?number} i */ 122 /** @param {?number} i */
122 Baz(i) { 123 Baz(i) {
123 super.Foo(i, 123); 124 super.Foo(i, 123);
124 } 125 }
125 } 126 }
126 dart.setSignature(Baz, { 127 dart.setSignature(Baz, {
127 constructors: () => ({Baz: [Baz, [core.int]]}) 128 constructors: () => ({Baz: [Baz, [core.int]]})
128 }); 129 });
129 /** @param {?} args */ 130 /** @param {?} args */
130 function main(args) { 131 function main(args) {
131 } 132 }
132 dart.fn(main, dart.void, [dart.dynamic]); 133 dart.fn(main, dart.void, [dart.dynamic]);
133 /** @final {string} */ 134 /** @final {string} */
134 const some_top_level_constant = "abc"; 135 const some_top_level_constant = "abc";
135 /** @final {string} */ 136 /** @final {string} */
136 exports.some_top_level_final = "abc"; 137 exports.some_top_level_final = "abc";
137 /** @type {string} */ 138 /** @type {string} */
138 exports.some_top_level_var = "abc"; 139 exports.some_top_level_var = "abc";
139 // Exports: 140 // Exports:
140 exports.Callback = Callback; 141 exports.Callback = Callback;
141 exports.Foo$ = Foo$; 142 exports.Foo$ = Foo$;
142 exports.Foo = Foo; 143 exports.Foo = Foo;
143 exports.Bar = Bar; 144 exports.Bar = Bar;
144 exports.Baz = Baz; 145 exports.Baz = Baz;
145 exports.main = main; 146 exports.main = main;
146 exports.some_top_level_constant = some_top_level_constant; 147 exports.some_top_level_constant = some_top_level_constant;
147 }); 148 });
OLDNEW
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | tool/input_sdk/private/types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698