OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/function_syntax_test_none_multi', null, /* Import
s */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__function_syntax_test_none_multi(exports, dart_sdk, expect) { |
| 5 'use strict'; |
| 6 const core = dart_sdk.core; |
| 7 const _interceptors = dart_sdk._interceptors; |
| 8 const dart = dart_sdk.dart; |
| 9 const dartx = dart_sdk.dartx; |
| 10 const expect$ = expect.expect; |
| 11 const function_syntax_test_none_multi = Object.create(null); |
| 12 let JSArrayOfint = () => (JSArrayOfint = dart.constFn(_interceptors.JSArray$(c
ore.int)))(); |
| 13 let ListOfint = () => (ListOfint = dart.constFn(core.List$(core.int)))(); |
| 14 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.functionType(dart
.dynamic, [])))(); |
| 15 let VoidToint = () => (VoidToint = dart.constFn(dart.functionType(core.int, []
)))(); |
| 16 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.functionTyp
e(dart.dynamic, [dart.dynamic])))(); |
| 17 let intTodynamic = () => (intTodynamic = dart.constFn(dart.functionType(dart.d
ynamic, [core.int])))(); |
| 18 let JSArrayOfVoidToint = () => (JSArrayOfVoidToint = dart.constFn(_interceptor
s.JSArray$(VoidToint())))(); |
| 19 let VoidTodynamic$ = () => (VoidTodynamic$ = dart.constFn(dart.definiteFunctio
nType(dart.dynamic, [])))(); |
| 20 let dynamicTodynamic$ = () => (dynamicTodynamic$ = dart.constFn(dart.definiteF
unctionType(dart.dynamic, [dart.dynamic])))(); |
| 21 let dynamicAnddynamicTodynamic = () => (dynamicAnddynamicTodynamic = dart.cons
tFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic, dart.dynamic])))(); |
| 22 let VoidToint$ = () => (VoidToint$ = dart.constFn(dart.definiteFunctionType(co
re.int, [])))(); |
| 23 let dynamicToint = () => (dynamicToint = dart.constFn(dart.definiteFunctionTyp
e(core.int, [dart.dynamic])))(); |
| 24 let dynamicAnddynamicToint = () => (dynamicAnddynamicToint = dart.constFn(dart
.definiteFunctionType(core.int, [dart.dynamic, dart.dynamic])))(); |
| 25 let intToint = () => (intToint = dart.constFn(dart.definiteFunctionType(core.i
nt, [core.int])))(); |
| 26 let intAndintToint = () => (intAndintToint = dart.constFn(dart.definiteFunctio
nType(core.int, [core.int, core.int])))(); |
| 27 let VoidToListOfint = () => (VoidToListOfint = dart.constFn(dart.definiteFunct
ionType(ListOfint(), [])))(); |
| 28 let ListOfintToListOfint = () => (ListOfintToListOfint = dart.constFn(dart.def
initeFunctionType(ListOfint(), [ListOfint()])))(); |
| 29 let dynamicAnddynamicAnddynamicTodynamic = () => (dynamicAnddynamicAnddynamicT
odynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic, d
art.dynamic, dart.dynamic])))(); |
| 30 let VoidTobool = () => (VoidTobool = dart.constFn(dart.definiteFunctionType(co
re.bool, [])))(); |
| 31 let VoidTodouble = () => (VoidTodouble = dart.constFn(dart.definiteFunctionTyp
e(core.double, [])))(); |
| 32 let FnTodynamic = () => (FnTodynamic = dart.constFn(dart.definiteFunctionType(
dart.dynamic, [VoidTodynamic()])))(); |
| 33 let FnTodynamic$ = () => (FnTodynamic$ = dart.constFn(dart.definiteFunctionTyp
e(dart.dynamic, [VoidToint()])))(); |
| 34 let FnTodynamic$0 = () => (FnTodynamic$0 = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [dynamicTodynamic()])))(); |
| 35 let FnTodynamic$1 = () => (FnTodynamic$1 = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [intTodynamic()])))(); |
| 36 function_syntax_test_none_multi.FunctionSyntaxTest = class FunctionSyntaxTest
extends core.Object { |
| 37 static testMain() { |
| 38 function_syntax_test_none_multi.FunctionSyntaxTest.testNestedFunctions(); |
| 39 function_syntax_test_none_multi.FunctionSyntaxTest.testFunctionExpressions
(); |
| 40 function_syntax_test_none_multi.FunctionSyntaxTest.testPrecedence(); |
| 41 function_syntax_test_none_multi.FunctionSyntaxTest.testInitializers(); |
| 42 function_syntax_test_none_multi.FunctionSyntaxTest.testFunctionParameter()
; |
| 43 function_syntax_test_none_multi.FunctionSyntaxTest.testFunctionIdentifierE
xpression(); |
| 44 function_syntax_test_none_multi.FunctionSyntaxTest.testFunctionIdentifierS
tatement(); |
| 45 } |
| 46 static testNestedFunctions() { |
| 47 function nb0() { |
| 48 return 42; |
| 49 } |
| 50 dart.fn(nb0, VoidTodynamic$()); |
| 51 function nb1(a) { |
| 52 return a; |
| 53 } |
| 54 dart.fn(nb1, dynamicTodynamic$()); |
| 55 function nb2(a, b) { |
| 56 return dart.dsend(a, '+', b); |
| 57 } |
| 58 dart.fn(nb2, dynamicAnddynamicTodynamic()); |
| 59 expect$.Expect.equals(42, nb0()); |
| 60 expect$.Expect.equals(87, nb1(87)); |
| 61 expect$.Expect.equals(1 + 2, nb2(1, 2)); |
| 62 function na0() { |
| 63 return 42; |
| 64 } |
| 65 dart.fn(na0, VoidTodynamic$()); |
| 66 function na1(a) { |
| 67 return a; |
| 68 } |
| 69 dart.fn(na1, dynamicTodynamic$()); |
| 70 function na2(a, b) { |
| 71 return dart.dsend(a, '+', b); |
| 72 } |
| 73 dart.fn(na2, dynamicAnddynamicTodynamic()); |
| 74 expect$.Expect.equals(42, na0()); |
| 75 expect$.Expect.equals(87, na1(87)); |
| 76 expect$.Expect.equals(1 + 2, na2(1, 2)); |
| 77 function rb0() { |
| 78 return 42; |
| 79 } |
| 80 dart.fn(rb0, VoidToint$()); |
| 81 function rb1(a) { |
| 82 return core.int._check(a); |
| 83 } |
| 84 dart.fn(rb1, dynamicToint()); |
| 85 function rb2(a, b) { |
| 86 return core.int._check(dart.dsend(a, '+', b)); |
| 87 } |
| 88 dart.fn(rb2, dynamicAnddynamicToint()); |
| 89 expect$.Expect.equals(42, rb0()); |
| 90 expect$.Expect.equals(87, rb1(87)); |
| 91 expect$.Expect.equals(1 + 2, rb2(1, 2)); |
| 92 function ra0() { |
| 93 return 42; |
| 94 } |
| 95 dart.fn(ra0, VoidToint$()); |
| 96 function ra1(a) { |
| 97 return core.int._check(a); |
| 98 } |
| 99 dart.fn(ra1, dynamicToint()); |
| 100 function ra2(a, b) { |
| 101 return core.int._check(dart.dsend(a, '+', b)); |
| 102 } |
| 103 dart.fn(ra2, dynamicAnddynamicToint()); |
| 104 expect$.Expect.equals(42, ra0()); |
| 105 expect$.Expect.equals(87, ra1(87)); |
| 106 expect$.Expect.equals(1 + 2, ra2(1, 2)); |
| 107 function fb1(a) { |
| 108 return a; |
| 109 } |
| 110 dart.fn(fb1, intToint()); |
| 111 function fb2(a, b) { |
| 112 return dart.notNull(a) + dart.notNull(b); |
| 113 } |
| 114 dart.fn(fb2, intAndintToint()); |
| 115 expect$.Expect.equals(42, rb0()); |
| 116 expect$.Expect.equals(87, rb1(87)); |
| 117 expect$.Expect.equals(1 + 2, rb2(1, 2)); |
| 118 function fa1(a) { |
| 119 return a; |
| 120 } |
| 121 dart.fn(fa1, intToint()); |
| 122 function fa2(a, b) { |
| 123 return dart.notNull(a) + dart.notNull(b); |
| 124 } |
| 125 dart.fn(fa2, intAndintToint()); |
| 126 expect$.Expect.equals(42, ra0()); |
| 127 expect$.Expect.equals(87, ra1(87)); |
| 128 expect$.Expect.equals(1 + 2, ra2(1, 2)); |
| 129 function gb0() { |
| 130 return JSArrayOfint().of([42]); |
| 131 } |
| 132 dart.fn(gb0, VoidToListOfint()); |
| 133 function gb1(a) { |
| 134 return a; |
| 135 } |
| 136 dart.fn(gb1, ListOfintToListOfint()); |
| 137 expect$.Expect.equals(42, gb0()[dartx.get](0)); |
| 138 expect$.Expect.equals(87, gb1(JSArrayOfint().of([87]))[dartx.get](0)); |
| 139 function ga0() { |
| 140 return JSArrayOfint().of([42]); |
| 141 } |
| 142 dart.fn(ga0, VoidToListOfint()); |
| 143 function ga1(a) { |
| 144 return a; |
| 145 } |
| 146 dart.fn(ga1, ListOfintToListOfint()); |
| 147 expect$.Expect.equals(42, ga0()[dartx.get](0)); |
| 148 expect$.Expect.equals(87, ga1(JSArrayOfint().of([87]))[dartx.get](0)); |
| 149 } |
| 150 static testFunctionExpressions() { |
| 151 function eval0(fn) { |
| 152 return dart.dcall(fn); |
| 153 } |
| 154 dart.fn(eval0, dynamicTodynamic$()); |
| 155 function eval1(fn, a) { |
| 156 return dart.dcall(fn, a); |
| 157 } |
| 158 dart.fn(eval1, dynamicAnddynamicTodynamic()); |
| 159 function eval2(fn, a, b) { |
| 160 return dart.dcall(fn, a, b); |
| 161 } |
| 162 dart.fn(eval2, dynamicAnddynamicAnddynamicTodynamic()); |
| 163 expect$.Expect.equals(42, eval0(dart.fn(() => 42, VoidToint$()))); |
| 164 expect$.Expect.equals(87, eval1(dart.fn(a => a, dynamicTodynamic$()), 87))
; |
| 165 expect$.Expect.equals(1 + 2, eval2(dart.fn((a, b) => dart.dsend(a, '+', b)
, dynamicAnddynamicTodynamic()), 1, 2)); |
| 166 expect$.Expect.equals(42, eval0(dart.fn(() => 42, VoidToint$()))); |
| 167 expect$.Expect.equals(87, eval1(dart.fn(a => a, dynamicTodynamic$()), 87))
; |
| 168 expect$.Expect.equals(1 + 2, eval2(dart.fn((a, b) => dart.dsend(a, '+', b)
, dynamicAnddynamicTodynamic()), 1, 2)); |
| 169 expect$.Expect.equals(42, eval0(dart.fn(() => 42, VoidToint$()))); |
| 170 expect$.Expect.equals(87, eval1(dart.fn(a => a, dynamicTodynamic$()), 87))
; |
| 171 expect$.Expect.equals(1 + 2, eval2(dart.fn((a, b) => dart.dsend(a, '+', b)
, dynamicAnddynamicTodynamic()), 1, 2)); |
| 172 expect$.Expect.equals(42, eval0(dart.fn(() => 42, VoidToint$()))); |
| 173 expect$.Expect.equals(87, eval1(dart.fn(a => a, dynamicTodynamic$()), 87))
; |
| 174 expect$.Expect.equals(1 + 2, eval2(dart.fn((a, b) => dart.dsend(a, '+', b)
, dynamicAnddynamicTodynamic()), 1, 2)); |
| 175 expect$.Expect.equals(42, eval0(dart.fn(() => 42, VoidToint$()))); |
| 176 expect$.Expect.equals(87, eval1(dart.fn(a => a, intToint()), 87)); |
| 177 expect$.Expect.equals(1 + 2, eval2(dart.fn((a, b) => dart.notNull(a) + dar
t.notNull(b), intAndintToint()), 1, 2)); |
| 178 expect$.Expect.equals(42, eval0(dart.fn(() => 42, VoidToint$()))); |
| 179 expect$.Expect.equals(87, eval1(dart.fn(a => a, intToint()), 87)); |
| 180 expect$.Expect.equals(1 + 2, eval2(dart.fn((a, b) => dart.notNull(a) + dar
t.notNull(b), intAndintToint()), 1, 2)); |
| 181 expect$.Expect.equals(42, eval0(dart.fn(() => 42, VoidToint$()))); |
| 182 expect$.Expect.equals(87, eval1(dart.fn(a => a, intToint()), 87)); |
| 183 expect$.Expect.equals(1 + 2, eval2(dart.fn((a, b) => dart.notNull(a) + dar
t.notNull(b), intAndintToint()), 1, 2)); |
| 184 expect$.Expect.equals(42, eval0(dart.fn(() => 42, VoidToint$()))); |
| 185 expect$.Expect.equals(87, eval1(dart.fn(a => a, intToint()), 87)); |
| 186 expect$.Expect.equals(1 + 2, eval2(dart.fn((a, b) => dart.notNull(a) + dar
t.notNull(b), intAndintToint()), 1, 2)); |
| 187 } |
| 188 static testPrecedence() { |
| 189 function expectEvaluatesTo(value, fn) { |
| 190 expect$.Expect.equals(value, dart.dcall(fn)); |
| 191 } |
| 192 dart.fn(expectEvaluatesTo, dynamicAnddynamicTodynamic()); |
| 193 let x = null; |
| 194 expectEvaluatesTo(42, dart.fn(() => x = 42, VoidToint$())); |
| 195 expect$.Expect.equals(42, x); |
| 196 x = 1; |
| 197 expectEvaluatesTo(100, dart.fn(() => (x = dart.dsend(x, '+', 99)), VoidTod
ynamic$())); |
| 198 expect$.Expect.equals(100, x); |
| 199 x = 1; |
| 200 expectEvaluatesTo(87, dart.fn(() => (x = dart.dsend(x, '*', 87)), VoidTody
namic$())); |
| 201 expect$.Expect.equals(87, x); |
| 202 expectEvaluatesTo(42, dart.fn(() => true ? 42 : 87, VoidToint$())); |
| 203 expectEvaluatesTo(87, dart.fn(() => false ? 42 : 87, VoidToint$())); |
| 204 expectEvaluatesTo(true, dart.fn(() => true || true, VoidTobool())); |
| 205 expectEvaluatesTo(true, dart.fn(() => true || false, VoidTobool())); |
| 206 expectEvaluatesTo(true, dart.fn(() => false || true, VoidTobool())); |
| 207 expectEvaluatesTo(false, dart.fn(() => false || false, VoidTobool())); |
| 208 expectEvaluatesTo(true, dart.fn(() => true && true, VoidTobool())); |
| 209 expectEvaluatesTo(false, dart.fn(() => true && false, VoidTobool())); |
| 210 expectEvaluatesTo(false, dart.fn(() => false && true, VoidTobool())); |
| 211 expectEvaluatesTo(false, dart.fn(() => false && false, VoidTobool())); |
| 212 expectEvaluatesTo(3, dart.fn(() => 1 | 2, VoidToint$())); |
| 213 expectEvaluatesTo(2, dart.fn(() => 3 ^ 1, VoidToint$())); |
| 214 expectEvaluatesTo(1, dart.fn(() => 3 & 1, VoidToint$())); |
| 215 expectEvaluatesTo(true, dart.fn(() => 1 == 1, VoidTobool())); |
| 216 expectEvaluatesTo(false, dart.fn(() => 1 != 1, VoidTobool())); |
| 217 expectEvaluatesTo(true, dart.fn(() => core.identical(1, 1), VoidTobool()))
; |
| 218 expectEvaluatesTo(false, dart.fn(() => !core.identical(1, 1), VoidTobool()
)); |
| 219 expectEvaluatesTo(true, dart.fn(() => 1 <= 1, VoidTobool())); |
| 220 expectEvaluatesTo(false, dart.fn(() => 1 < 1, VoidTobool())); |
| 221 expectEvaluatesTo(false, dart.fn(() => 1 > 1, VoidTobool())); |
| 222 expectEvaluatesTo(true, dart.fn(() => 1 >= 1, VoidTobool())); |
| 223 expectEvaluatesTo(true, dart.fn(() => typeof 1 == 'number', VoidTobool()))
; |
| 224 expectEvaluatesTo(true, dart.fn(() => typeof 1.0 == 'number', VoidTobool()
)); |
| 225 expectEvaluatesTo(2, dart.fn(() => 1 << 1, VoidToint$())); |
| 226 expectEvaluatesTo(1, dart.fn(() => 2 >> 1, VoidToint$())); |
| 227 expectEvaluatesTo(2, dart.fn(() => 1 + 1, VoidToint$())); |
| 228 expectEvaluatesTo(1, dart.fn(() => 2 - 1, VoidToint$())); |
| 229 expectEvaluatesTo(2, dart.fn(() => 1 * 2, VoidToint$())); |
| 230 expectEvaluatesTo(2.0, dart.fn(() => 4 / 2, VoidTodouble())); |
| 231 expectEvaluatesTo(2, dart.fn(() => (4 / 2)[dartx.truncate](), VoidToint$()
)); |
| 232 expectEvaluatesTo(0, dart.fn(() => (4)[dartx['%']](2), VoidToint$())); |
| 233 expectEvaluatesTo(false, dart.fn(() => !true, VoidTobool())); |
| 234 let y = 0; |
| 235 expectEvaluatesTo(0, dart.fn(() => y++, VoidToint$())); |
| 236 expectEvaluatesTo(2, dart.fn(() => ++y, VoidToint$())); |
| 237 expectEvaluatesTo(1, dart.fn(() => --y, VoidToint$())); |
| 238 expectEvaluatesTo(1, dart.fn(() => y--, VoidToint$())); |
| 239 expect$.Expect.equals(0, y); |
| 240 function fn() { |
| 241 return 42; |
| 242 } |
| 243 dart.fn(fn, VoidTodynamic$()); |
| 244 let list = JSArrayOfint().of([87]); |
| 245 expectEvaluatesTo(42, dart.fn(() => fn(), VoidTodynamic$())); |
| 246 expectEvaluatesTo(1, dart.fn(() => list[dartx.length], VoidToint$())); |
| 247 expectEvaluatesTo(87, dart.fn(() => list[dartx.get](0), VoidToint$())); |
| 248 expectEvaluatesTo(87, dart.fn(() => list[dartx.removeLast](), VoidToint$()
)); |
| 249 } |
| 250 static testInitializers() { |
| 251 expect$.Expect.equals(42, dart.dcall(new function_syntax_test_none_multi.C
.cb0().fn)); |
| 252 expect$.Expect.equals(43, dart.dcall(new function_syntax_test_none_multi.C
.ca0().fn)); |
| 253 expect$.Expect.equals(44, dart.dcall(new function_syntax_test_none_multi.C
.cb1().fn)); |
| 254 expect$.Expect.equals(45, dart.dcall(new function_syntax_test_none_multi.C
.ca1().fn)); |
| 255 expect$.Expect.equals(46, dart.dcall(new function_syntax_test_none_multi.C
.cb2().fn)); |
| 256 expect$.Expect.equals(47, dart.dcall(new function_syntax_test_none_multi.C
.ca2().fn)); |
| 257 expect$.Expect.equals(48, dart.dcall(new function_syntax_test_none_multi.C
.cb3().fn)); |
| 258 expect$.Expect.equals(49, dart.dcall(new function_syntax_test_none_multi.C
.ca3().fn)); |
| 259 expect$.Expect.equals(52, dart.dcall(new function_syntax_test_none_multi.C
.nb0().fn)); |
| 260 expect$.Expect.equals(53, dart.dcall(new function_syntax_test_none_multi.C
.na0().fn)); |
| 261 expect$.Expect.equals(54, dart.dcall(new function_syntax_test_none_multi.C
.nb1().fn)); |
| 262 expect$.Expect.equals(55, dart.dcall(new function_syntax_test_none_multi.C
.na1().fn)); |
| 263 expect$.Expect.equals(56, dart.dcall(new function_syntax_test_none_multi.C
.nb2().fn)); |
| 264 expect$.Expect.equals(57, dart.dcall(new function_syntax_test_none_multi.C
.na2().fn)); |
| 265 expect$.Expect.equals(58, dart.dcall(new function_syntax_test_none_multi.C
.nb3().fn)); |
| 266 expect$.Expect.equals(59, dart.dcall(new function_syntax_test_none_multi.C
.na3().fn)); |
| 267 expect$.Expect.equals(62, dart.dcall(new function_syntax_test_none_multi.C
.rb0().fn)); |
| 268 expect$.Expect.equals(63, dart.dcall(new function_syntax_test_none_multi.C
.ra0().fn)); |
| 269 expect$.Expect.equals(64, dart.dcall(new function_syntax_test_none_multi.C
.rb1().fn)); |
| 270 expect$.Expect.equals(65, dart.dcall(new function_syntax_test_none_multi.C
.ra1().fn)); |
| 271 expect$.Expect.equals(66, dart.dcall(new function_syntax_test_none_multi.C
.rb2().fn)); |
| 272 expect$.Expect.equals(67, dart.dcall(new function_syntax_test_none_multi.C
.ra2().fn)); |
| 273 expect$.Expect.equals(68, dart.dcall(new function_syntax_test_none_multi.C
.rb3().fn)); |
| 274 expect$.Expect.equals(69, dart.dcall(new function_syntax_test_none_multi.C
.ra3().fn)); |
| 275 } |
| 276 static testFunctionParameter() { |
| 277 function f0(fn) { |
| 278 return fn(); |
| 279 } |
| 280 dart.fn(f0, FnTodynamic()); |
| 281 expect$.Expect.equals(42, f0(dart.fn(() => 42, VoidToint$()))); |
| 282 function f1(fn) { |
| 283 return fn(); |
| 284 } |
| 285 dart.fn(f1, FnTodynamic$()); |
| 286 expect$.Expect.equals(87, f1(dart.fn(() => 87, VoidToint$()))); |
| 287 function f2(fn) { |
| 288 return dart.dcall(fn, 42); |
| 289 } |
| 290 dart.fn(f2, FnTodynamic$0()); |
| 291 expect$.Expect.equals(43, f2(dart.fn(a => dart.dsend(a, '+', 1), dynamicTo
dynamic$()))); |
| 292 function f3(fn) { |
| 293 return fn(42); |
| 294 } |
| 295 dart.fn(f3, FnTodynamic$1()); |
| 296 expect$.Expect.equals(44, f3(dart.fn(a => dart.notNull(a) + 2, intToint())
)); |
| 297 } |
| 298 static testFunctionIdentifierExpression() { |
| 299 expect$.Expect.equals(87, dart.fn(() => 87, VoidToint$())()); |
| 300 } |
| 301 static testFunctionIdentifierStatement() { |
| 302 function func() { |
| 303 return 42; |
| 304 } |
| 305 dart.fn(func, VoidTodynamic$()); |
| 306 expect$.Expect.equals(42, func()); |
| 307 expect$.Expect.equals(true, core.Function.is(func)); |
| 308 } |
| 309 }; |
| 310 dart.setSignature(function_syntax_test_none_multi.FunctionSyntaxTest, { |
| 311 statics: () => ({ |
| 312 testMain: dart.definiteFunctionType(dart.void, []), |
| 313 testNestedFunctions: dart.definiteFunctionType(dart.void, []), |
| 314 testFunctionExpressions: dart.definiteFunctionType(dart.void, []), |
| 315 testPrecedence: dart.definiteFunctionType(dart.void, []), |
| 316 testInitializers: dart.definiteFunctionType(dart.void, []), |
| 317 testFunctionParameter: dart.definiteFunctionType(dart.void, []), |
| 318 testFunctionIdentifierExpression: dart.definiteFunctionType(dart.void, [])
, |
| 319 testFunctionIdentifierStatement: dart.definiteFunctionType(dart.void, []) |
| 320 }), |
| 321 names: ['testMain', 'testNestedFunctions', 'testFunctionExpressions', 'testP
recedence', 'testInitializers', 'testFunctionParameter', 'testFunctionIdentifier
Expression', 'testFunctionIdentifierStatement'] |
| 322 }); |
| 323 function_syntax_test_none_multi.C = class C extends core.Object { |
| 324 cb0() { |
| 325 this.fn = dart.fn(() => 42, VoidToint$()); |
| 326 } |
| 327 ca0() { |
| 328 this.fn = dart.fn(() => 43, VoidToint$()); |
| 329 } |
| 330 cb1() { |
| 331 this.fn = function_syntax_test_none_multi.C.wrap(dart.fn(() => 44, VoidToi
nt$())); |
| 332 } |
| 333 ca1() { |
| 334 this.fn = function_syntax_test_none_multi.C.wrap(dart.fn(() => 45, VoidToi
nt$())); |
| 335 } |
| 336 cb2() { |
| 337 this.fn = JSArrayOfVoidToint().of([dart.fn(() => 46, VoidToint$())])[dartx
.get](0); |
| 338 } |
| 339 ca2() { |
| 340 this.fn = JSArrayOfVoidToint().of([dart.fn(() => 47, VoidToint$())])[dartx
.get](0); |
| 341 } |
| 342 cb3() { |
| 343 this.fn = dart.map({x: dart.fn(() => 48, VoidToint$())})[dartx.get]('x'); |
| 344 } |
| 345 ca3() { |
| 346 this.fn = dart.map({x: dart.fn(() => 49, VoidToint$())})[dartx.get]('x'); |
| 347 } |
| 348 nb0() { |
| 349 this.fn = dart.fn(() => 52, VoidToint$()); |
| 350 } |
| 351 na0() { |
| 352 this.fn = dart.fn(() => 53, VoidToint$()); |
| 353 } |
| 354 nb1() { |
| 355 this.fn = function_syntax_test_none_multi.C.wrap(dart.fn(() => 54, VoidToi
nt$())); |
| 356 } |
| 357 na1() { |
| 358 this.fn = function_syntax_test_none_multi.C.wrap(dart.fn(() => 55, VoidToi
nt$())); |
| 359 } |
| 360 nb2() { |
| 361 this.fn = JSArrayOfVoidToint().of([dart.fn(() => 56, VoidToint$())])[dartx
.get](0); |
| 362 } |
| 363 na2() { |
| 364 this.fn = JSArrayOfVoidToint().of([dart.fn(() => 57, VoidToint$())])[dartx
.get](0); |
| 365 } |
| 366 nb3() { |
| 367 this.fn = dart.map({x: dart.fn(() => 58, VoidToint$())})[dartx.get]('x'); |
| 368 } |
| 369 na3() { |
| 370 this.fn = dart.map({x: dart.fn(() => 59, VoidToint$())})[dartx.get]('x'); |
| 371 } |
| 372 rb0() { |
| 373 this.fn = dart.fn(() => 62, VoidToint$()); |
| 374 } |
| 375 ra0() { |
| 376 this.fn = dart.fn(() => 63, VoidToint$()); |
| 377 } |
| 378 rb1() { |
| 379 this.fn = function_syntax_test_none_multi.C.wrap(dart.fn(() => 64, VoidToi
nt$())); |
| 380 } |
| 381 ra1() { |
| 382 this.fn = function_syntax_test_none_multi.C.wrap(dart.fn(() => 65, VoidToi
nt$())); |
| 383 } |
| 384 rb2() { |
| 385 this.fn = JSArrayOfVoidToint().of([dart.fn(() => 66, VoidToint$())])[dartx
.get](0); |
| 386 } |
| 387 ra2() { |
| 388 this.fn = JSArrayOfVoidToint().of([dart.fn(() => 67, VoidToint$())])[dartx
.get](0); |
| 389 } |
| 390 rb3() { |
| 391 this.fn = dart.map({x: dart.fn(() => 68, VoidToint$())})[dartx.get]('x'); |
| 392 } |
| 393 ra3() { |
| 394 this.fn = dart.map({x: dart.fn(() => 69, VoidToint$())})[dartx.get]('x'); |
| 395 } |
| 396 static wrap(fn) { |
| 397 return fn; |
| 398 } |
| 399 }; |
| 400 dart.defineNamedConstructor(function_syntax_test_none_multi.C, 'cb0'); |
| 401 dart.defineNamedConstructor(function_syntax_test_none_multi.C, 'ca0'); |
| 402 dart.defineNamedConstructor(function_syntax_test_none_multi.C, 'cb1'); |
| 403 dart.defineNamedConstructor(function_syntax_test_none_multi.C, 'ca1'); |
| 404 dart.defineNamedConstructor(function_syntax_test_none_multi.C, 'cb2'); |
| 405 dart.defineNamedConstructor(function_syntax_test_none_multi.C, 'ca2'); |
| 406 dart.defineNamedConstructor(function_syntax_test_none_multi.C, 'cb3'); |
| 407 dart.defineNamedConstructor(function_syntax_test_none_multi.C, 'ca3'); |
| 408 dart.defineNamedConstructor(function_syntax_test_none_multi.C, 'nb0'); |
| 409 dart.defineNamedConstructor(function_syntax_test_none_multi.C, 'na0'); |
| 410 dart.defineNamedConstructor(function_syntax_test_none_multi.C, 'nb1'); |
| 411 dart.defineNamedConstructor(function_syntax_test_none_multi.C, 'na1'); |
| 412 dart.defineNamedConstructor(function_syntax_test_none_multi.C, 'nb2'); |
| 413 dart.defineNamedConstructor(function_syntax_test_none_multi.C, 'na2'); |
| 414 dart.defineNamedConstructor(function_syntax_test_none_multi.C, 'nb3'); |
| 415 dart.defineNamedConstructor(function_syntax_test_none_multi.C, 'na3'); |
| 416 dart.defineNamedConstructor(function_syntax_test_none_multi.C, 'rb0'); |
| 417 dart.defineNamedConstructor(function_syntax_test_none_multi.C, 'ra0'); |
| 418 dart.defineNamedConstructor(function_syntax_test_none_multi.C, 'rb1'); |
| 419 dart.defineNamedConstructor(function_syntax_test_none_multi.C, 'ra1'); |
| 420 dart.defineNamedConstructor(function_syntax_test_none_multi.C, 'rb2'); |
| 421 dart.defineNamedConstructor(function_syntax_test_none_multi.C, 'ra2'); |
| 422 dart.defineNamedConstructor(function_syntax_test_none_multi.C, 'rb3'); |
| 423 dart.defineNamedConstructor(function_syntax_test_none_multi.C, 'ra3'); |
| 424 dart.setSignature(function_syntax_test_none_multi.C, { |
| 425 constructors: () => ({ |
| 426 cb0: dart.definiteFunctionType(function_syntax_test_none_multi.C, []), |
| 427 ca0: dart.definiteFunctionType(function_syntax_test_none_multi.C, []), |
| 428 cb1: dart.definiteFunctionType(function_syntax_test_none_multi.C, []), |
| 429 ca1: dart.definiteFunctionType(function_syntax_test_none_multi.C, []), |
| 430 cb2: dart.definiteFunctionType(function_syntax_test_none_multi.C, []), |
| 431 ca2: dart.definiteFunctionType(function_syntax_test_none_multi.C, []), |
| 432 cb3: dart.definiteFunctionType(function_syntax_test_none_multi.C, []), |
| 433 ca3: dart.definiteFunctionType(function_syntax_test_none_multi.C, []), |
| 434 nb0: dart.definiteFunctionType(function_syntax_test_none_multi.C, []), |
| 435 na0: dart.definiteFunctionType(function_syntax_test_none_multi.C, []), |
| 436 nb1: dart.definiteFunctionType(function_syntax_test_none_multi.C, []), |
| 437 na1: dart.definiteFunctionType(function_syntax_test_none_multi.C, []), |
| 438 nb2: dart.definiteFunctionType(function_syntax_test_none_multi.C, []), |
| 439 na2: dart.definiteFunctionType(function_syntax_test_none_multi.C, []), |
| 440 nb3: dart.definiteFunctionType(function_syntax_test_none_multi.C, []), |
| 441 na3: dart.definiteFunctionType(function_syntax_test_none_multi.C, []), |
| 442 rb0: dart.definiteFunctionType(function_syntax_test_none_multi.C, []), |
| 443 ra0: dart.definiteFunctionType(function_syntax_test_none_multi.C, []), |
| 444 rb1: dart.definiteFunctionType(function_syntax_test_none_multi.C, []), |
| 445 ra1: dart.definiteFunctionType(function_syntax_test_none_multi.C, []), |
| 446 rb2: dart.definiteFunctionType(function_syntax_test_none_multi.C, []), |
| 447 ra2: dart.definiteFunctionType(function_syntax_test_none_multi.C, []), |
| 448 rb3: dart.definiteFunctionType(function_syntax_test_none_multi.C, []), |
| 449 ra3: dart.definiteFunctionType(function_syntax_test_none_multi.C, []) |
| 450 }), |
| 451 statics: () => ({wrap: dart.definiteFunctionType(dart.dynamic, [dart.dynamic
])}), |
| 452 names: ['wrap'] |
| 453 }); |
| 454 function_syntax_test_none_multi.main = function() { |
| 455 function_syntax_test_none_multi.FunctionSyntaxTest.testMain(); |
| 456 }; |
| 457 dart.fn(function_syntax_test_none_multi.main, VoidTodynamic$()); |
| 458 // Exports: |
| 459 exports.function_syntax_test_none_multi = function_syntax_test_none_multi; |
| 460 }); |
OLD | NEW |