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

Side by Side Diff: test/codegen/expect/language/conditional_property_access_test_15_multi.js

Issue 2128353002: Check in codegen test expectations. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 5 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
OLDNEW
(Empty)
1 dart_library.library('language/conditional_property_access_test_15_multi', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__conditional_property_access_test_15_multi(exports, dart_sdk, e xpect) {
5 'use strict';
6 const core = dart_sdk.core;
7 const dart = dart_sdk.dart;
8 const dartx = dart_sdk.dartx;
9 const expect$ = expect.expect;
10 const conditional_property_access_test_15_multi = Object.create(null);
11 const conditional_access_helper = Object.create(null);
12 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun ctionType(dart.dynamic, [dart.dynamic])))();
13 let VoidToC = () => (VoidToC = dart.constFn(dart.definiteFunctionType(conditio nal_property_access_test_15_multi.C, [])))();
14 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
15 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da rt.void, [])))();
16 let VoidToC$ = () => (VoidToC$ = dart.constFn(dart.definiteFunctionType(condit ional_access_helper.C, [])))();
17 conditional_property_access_test_15_multi.noMethod = function(e) {
18 return core.NoSuchMethodError.is(e);
19 };
20 dart.fn(conditional_property_access_test_15_multi.noMethod, dynamicTodynamic() );
21 conditional_property_access_test_15_multi.B = class B extends core.Object {};
22 conditional_property_access_test_15_multi.C = class C extends conditional_prop erty_access_test_15_multi.B {
23 new(v) {
24 this.v = v;
25 }
26 };
27 dart.setSignature(conditional_property_access_test_15_multi.C, {
28 constructors: () => ({new: dart.definiteFunctionType(conditional_property_ac cess_test_15_multi.C, [core.int])})
29 });
30 conditional_property_access_test_15_multi.C.staticInt = null;
31 conditional_property_access_test_15_multi.nullC = function() {
32 return null;
33 };
34 dart.fn(conditional_property_access_test_15_multi.nullC, VoidToC());
35 conditional_property_access_test_15_multi.main = function() {
36 dart.nullSafe(conditional_property_access_test_15_multi.nullC(), _ => _.v);
37 {
38 conditional_access_helper.C.staticInt = 1;
39 let i = conditional_access_helper.C.staticInt;
40 expect$.Expect.equals(1, i);
41 }
42 };
43 dart.fn(conditional_property_access_test_15_multi.main, VoidTodynamic());
44 conditional_access_helper.topLevelVar = null;
45 conditional_access_helper.topLevelFunction = function() {
46 };
47 dart.fn(conditional_access_helper.topLevelFunction, VoidTovoid());
48 conditional_access_helper.C = class C extends core.Object {
49 static staticF(callback) {
50 return callback();
51 }
52 static staticG(callback) {
53 return callback();
54 }
55 };
56 dart.setSignature(conditional_access_helper.C, {
57 statics: () => ({
58 staticF: dart.definiteFunctionType(dart.dynamic, [dart.functionType(dart.d ynamic, [])]),
59 staticG: dart.definiteFunctionType(core.int, [dart.functionType(core.int, [])])
60 }),
61 names: ['staticF', 'staticG']
62 });
63 conditional_access_helper.C.staticInt = null;
64 conditional_access_helper.nullC = function() {
65 return null;
66 };
67 dart.fn(conditional_access_helper.nullC, VoidToC$());
68 conditional_access_helper.D = class D extends core.Object {};
69 conditional_access_helper.D.staticE = null;
70 conditional_access_helper.E = class E extends core.Object {
71 ['+'](i) {
72 return new conditional_access_helper.I();
73 }
74 ['-'](i) {
75 return new conditional_access_helper.I();
76 }
77 };
78 dart.setSignature(conditional_access_helper.E, {
79 methods: () => ({
80 '+': dart.definiteFunctionType(conditional_access_helper.G, [core.int]),
81 '-': dart.definiteFunctionType(conditional_access_helper.G, [core.int])
82 })
83 });
84 conditional_access_helper.F = class F extends core.Object {};
85 conditional_access_helper.G = class G extends conditional_access_helper.E {};
86 conditional_access_helper.G[dart.implements] = () => [conditional_access_helpe r.F];
87 conditional_access_helper.H = class H extends core.Object {};
88 conditional_access_helper.I = class I extends conditional_access_helper.G {};
89 conditional_access_helper.I[dart.implements] = () => [conditional_access_helpe r.H];
90 // Exports:
91 exports.conditional_property_access_test_15_multi = conditional_property_acces s_test_15_multi;
92 exports.conditional_access_helper = conditional_access_helper;
93 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698