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

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

Issue 1757343002: upgrade to latest analyzer (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 9 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/expect/opassign.js ('k') | test/codegen/language/cascade2_test.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('syncstar_syntax', null, /* Imports */[ 1 dart_library.library('syncstar_syntax', null, /* Imports */[
2 'dart/_runtime', 2 'dart/_runtime',
3 'dart/core', 3 'dart/core',
4 'expect/expect' 4 'expect/expect'
5 ], /* Lazy imports */[ 5 ], /* Lazy imports */[
6 ], function(exports, dart, core, expect) { 6 ], function(exports, dart, core, expect) {
7 'use strict'; 7 'use strict';
8 let dartx = dart.dartx; 8 let dartx = dart.dartx;
9 function foo() { 9 function foo() {
10 return dart.syncStar(function*() { 10 return dart.syncStar(function*() {
(...skipping 22 matching lines...) Expand all
33 names: ['baz'] 33 names: ['baz']
34 }); 34 });
35 function main() { 35 function main() {
36 function qux() { 36 function qux() {
37 return dart.syncStar(function*() { 37 return dart.syncStar(function*() {
38 yield 1; 38 yield 1;
39 yield* dart.list([2, 3], core.int); 39 yield* dart.list([2, 3], core.int);
40 }, core.int); 40 }, core.int);
41 } 41 }
42 dart.fn(qux, core.Iterable$(core.int), []); 42 dart.fn(qux, core.Iterable$(core.int), []);
43 expect.Expect.listEquals([1, 2, 3], foo()[dartx.toList]()); 43 expect.Expect.listEquals(dart.list([1, 2, 3], core.int), foo()[dartx.toList] ());
44 expect.Expect.listEquals([1, 2, 3], new Class().bar()[dartx.toList]()); 44 expect.Expect.listEquals(dart.list([1, 2, 3], core.int), new Class().bar()[d artx.toList]());
45 expect.Expect.listEquals([1, 2, 3], Class.baz()[dartx.toList]()); 45 expect.Expect.listEquals(dart.list([1, 2, 3], core.int), Class.baz()[dartx.t oList]());
46 expect.Expect.listEquals([1, 2, 3], qux()[dartx.toList]()); 46 expect.Expect.listEquals(dart.list([1, 2, 3], core.int), qux()[dartx.toList] ());
47 } 47 }
48 dart.fn(main); 48 dart.fn(main);
49 // Exports: 49 // Exports:
50 exports.foo = foo; 50 exports.foo = foo;
51 exports.Class = Class; 51 exports.Class = Class;
52 exports.main = main; 52 exports.main = main;
53 }); 53 });
OLDNEW
« no previous file with comments | « test/codegen/expect/opassign.js ('k') | test/codegen/language/cascade2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698