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

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

Issue 968273002: Fixing layout in js output (use full paths rather than just the library name) (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: address review comments Created 5 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/cascade.js ('k') | test/codegen/expect/collection/collection.js » ('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 var cascade;
2 (function(exports) {
3 'use strict';
4 class A extends dart.Object {
5 A() {
6 this.x = null;
7 }
8 }
9 // Function test_closure_with_mutate: () → void
10 function test_closure_with_mutate() {
11 let a = new A();
12 a.x = () => {
13 core.print("hi");
14 a = null;
15 };
16 ((_) => {
17 dart.dinvoke(_, 'x');
18 dart.dinvoke(_, 'x');
19 })(a);
20 core.print(a);
21 }
22 // Function test_closure_without_mutate: () → void
23 function test_closure_without_mutate() {
24 let a = new A();
25 a.x = () => {
26 core.print(a);
27 };
28 dart.dinvoke(a, 'x');
29 dart.dinvoke(a, 'x');
30 core.print(a);
31 }
32 // Function test_mutate_inside_cascade: () → void
33 function test_mutate_inside_cascade() {
34 let a = null;
35 a = ((_) => {
36 _.x = a = null;
37 _.x = a = null;
38 return _;
39 })(new A());
40 core.print(a);
41 }
42 // Function test_mutate_outside_cascade: () → void
43 function test_mutate_outside_cascade() {
44 let a = null, b = null;
45 a = new A();
46 dart.dput(a, 'x', b = null);
47 dart.dput(a, 'x', b = null);
48 a = null;
49 core.print(a);
50 }
51 // Function test_VariableDeclaration_single: () → void
52 function test_VariableDeclaration_single() {
53 let a = new List.from([]);
54 dart.dput(a, 'length', 2);
55 a.add(42);
56 core.print(a);
57 }
58 // Function test_VariableDeclaration_last: () → void
59 function test_VariableDeclaration_last() {
60 let a = 42, b = new List.from([]);
61 dart.dput(b, 'length', 2);
62 b.add(a);
63 core.print(b);
64 }
65 // Function test_VariableDeclaration_first: () → void
66 function test_VariableDeclaration_first() {
67 let a = ((_) => {
68 _.length = 2;
69 _.add(3);
70 return _;
71 })(new List.from([])), b = 2;
72 core.print(a);
73 }
74 // Exports:
75 exports.A = A;
76 exports.test_closure_with_mutate = test_closure_with_mutate;
77 exports.test_closure_without_mutate = test_closure_without_mutate;
78 exports.test_mutate_inside_cascade = test_mutate_inside_cascade;
79 exports.test_mutate_outside_cascade = test_mutate_outside_cascade;
80 exports.test_VariableDeclaration_single = test_VariableDeclaration_single;
81 exports.test_VariableDeclaration_last = test_VariableDeclaration_last;
82 exports.test_VariableDeclaration_first = test_VariableDeclaration_first;
83 })(cascade || (cascade = {}));
OLDNEW
« no previous file with comments | « test/codegen/expect/cascade.js ('k') | test/codegen/expect/collection/collection.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698