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

Side by Side Diff: test/codegen/expect/language/conditional_method_invocation_test_04_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_method_invocation_test_04_multi', nul l, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__conditional_method_invocation_test_04_multi(exports, dart_sdk, expect) {
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_method_invocation_test_04_multi = Object.create(null);
11 const conditional_access_helper = Object.create(null);
12 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
13 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun ctionType(dart.dynamic, [dart.dynamic])))();
14 let VoidToC = () => (VoidToC = dart.constFn(dart.definiteFunctionType(conditio nal_method_invocation_test_04_multi.C, [])))();
15 let VoidToint = () => (VoidToint = dart.constFn(dart.definiteFunctionType(core .int, [])))();
16 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da rt.void, [])))();
17 let VoidToC$ = () => (VoidToC$ = dart.constFn(dart.definiteFunctionType(condit ional_access_helper.C, [])))();
18 conditional_method_invocation_test_04_multi.bad = function() {
19 expect$.Expect.fail('Should not be executed');
20 };
21 dart.fn(conditional_method_invocation_test_04_multi.bad, VoidTodynamic());
22 conditional_method_invocation_test_04_multi.noMethod = function(e) {
23 return core.NoSuchMethodError.is(e);
24 };
25 dart.fn(conditional_method_invocation_test_04_multi.noMethod, dynamicTodynamic ());
26 conditional_method_invocation_test_04_multi.B = class B extends core.Object {} ;
27 conditional_method_invocation_test_04_multi.C = class C extends conditional_me thod_invocation_test_04_multi.B {
28 f(callback) {
29 return callback();
30 }
31 g(callback) {
32 return callback();
33 }
34 static staticF(callback) {
35 return callback();
36 }
37 static staticG(callback) {
38 return callback();
39 }
40 };
41 dart.setSignature(conditional_method_invocation_test_04_multi.C, {
42 methods: () => ({
43 f: dart.definiteFunctionType(dart.dynamic, [dart.functionType(dart.dynamic , [])]),
44 g: dart.definiteFunctionType(core.int, [dart.functionType(core.int, [])])
45 }),
46 statics: () => ({
47 staticF: dart.definiteFunctionType(dart.dynamic, [dart.functionType(dart.d ynamic, [])]),
48 staticG: dart.definiteFunctionType(core.int, [dart.functionType(core.int, [])])
49 }),
50 names: ['staticF', 'staticG']
51 });
52 conditional_method_invocation_test_04_multi.nullC = function() {
53 return null;
54 };
55 dart.fn(conditional_method_invocation_test_04_multi.nullC, VoidToC());
56 conditional_method_invocation_test_04_multi.main = function() {
57 dart.nullSafe(conditional_method_invocation_test_04_multi.nullC(), _ => _.f( null));
58 {
59 let i = new conditional_method_invocation_test_04_multi.C().g(dart.fn(() = > 1, VoidToint()));
60 expect$.Expect.equals(1, i);
61 }
62 };
63 dart.fn(conditional_method_invocation_test_04_multi.main, VoidTodynamic());
64 conditional_access_helper.topLevelVar = null;
65 conditional_access_helper.topLevelFunction = function() {
66 };
67 dart.fn(conditional_access_helper.topLevelFunction, VoidTovoid());
68 conditional_access_helper.C = class C extends core.Object {
69 static staticF(callback) {
70 return callback();
71 }
72 static staticG(callback) {
73 return callback();
74 }
75 };
76 dart.setSignature(conditional_access_helper.C, {
77 statics: () => ({
78 staticF: dart.definiteFunctionType(dart.dynamic, [dart.functionType(dart.d ynamic, [])]),
79 staticG: dart.definiteFunctionType(core.int, [dart.functionType(core.int, [])])
80 }),
81 names: ['staticF', 'staticG']
82 });
83 conditional_access_helper.C.staticInt = null;
84 conditional_access_helper.nullC = function() {
85 return null;
86 };
87 dart.fn(conditional_access_helper.nullC, VoidToC$());
88 conditional_access_helper.D = class D extends core.Object {};
89 conditional_access_helper.D.staticE = null;
90 conditional_access_helper.E = class E extends core.Object {
91 ['+'](i) {
92 return new conditional_access_helper.I();
93 }
94 ['-'](i) {
95 return new conditional_access_helper.I();
96 }
97 };
98 dart.setSignature(conditional_access_helper.E, {
99 methods: () => ({
100 '+': dart.definiteFunctionType(conditional_access_helper.G, [core.int]),
101 '-': dart.definiteFunctionType(conditional_access_helper.G, [core.int])
102 })
103 });
104 conditional_access_helper.F = class F extends core.Object {};
105 conditional_access_helper.G = class G extends conditional_access_helper.E {};
106 conditional_access_helper.G[dart.implements] = () => [conditional_access_helpe r.F];
107 conditional_access_helper.H = class H extends core.Object {};
108 conditional_access_helper.I = class I extends conditional_access_helper.G {};
109 conditional_access_helper.I[dart.implements] = () => [conditional_access_helpe r.H];
110 // Exports:
111 exports.conditional_method_invocation_test_04_multi = conditional_method_invoc ation_test_04_multi;
112 exports.conditional_access_helper = conditional_access_helper;
113 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698