@@ -9,6 +9,10 @@ function testPrimitive() {
9
9
console . log ( 42 ) ;
10
10
}
11
11
12
+ function testPrimitivePipe ( ) {
13
+ console . log ( 42 ) ;
14
+ }
15
+
12
16
function testPrimitiveRef ( ) {
13
17
console . log ( 42 ) ;
14
18
}
@@ -17,6 +21,10 @@ function testNone() {
17
21
18
22
}
19
23
24
+ function testNonePipe ( ) {
25
+
26
+ }
27
+
20
28
function testNoneRef ( ) {
21
29
22
30
}
@@ -25,6 +33,10 @@ function testQualified() {
25
33
console . log ( "hello" ) ;
26
34
}
27
35
36
+ function testQualifiedPipe ( ) {
37
+ console . log ( "hello" ) ;
38
+ }
39
+
28
40
function testQualifiedRef ( ) {
29
41
console . log ( "hello" ) ;
30
42
}
@@ -33,6 +45,10 @@ function testComplexExpr() {
33
45
console . log ( "true" ) ;
34
46
}
35
47
48
+ function testComplexExprPipe ( ) {
49
+ console . log ( "true" ) ;
50
+ }
51
+
36
52
function testComplexExprRef ( ) {
37
53
console . log ( "true" ) ;
38
54
}
@@ -48,6 +64,17 @@ function testNestedCalls() {
48
64
} ) ;
49
65
}
50
66
67
+ function testNestedCallsPipe ( ) {
68
+ let opt = [
69
+ 1 ,
70
+ 2 ,
71
+ 3
72
+ ] ;
73
+ opt . forEach ( item => {
74
+ console . log ( item ) ;
75
+ } ) ;
76
+ }
77
+
51
78
function testNestedCallsRef ( ) {
52
79
let opt = [
53
80
1 ,
@@ -63,6 +90,10 @@ function testNamedCallback() {
63
90
console . log ( 42 ) ;
64
91
}
65
92
93
+ function testNamedCallbackPipe ( ) {
94
+ console . log ( 42 ) ;
95
+ }
96
+
66
97
function testNamedCallbackRef ( ) {
67
98
console . log ( 42 ) ;
68
99
}
@@ -72,6 +103,11 @@ function testMultiple() {
72
103
console . log ( "second" ) ;
73
104
}
74
105
106
+ function testMultiplePipe ( ) {
107
+ console . log ( "first" ) ;
108
+ console . log ( "second" ) ;
109
+ }
110
+
75
111
function testMultipleRef ( ) {
76
112
console . log ( "first" ) ;
77
113
console . log ( "second" ) ;
@@ -81,26 +117,38 @@ function testNonPrimitive() {
81
117
console . log ( "hello" ) ;
82
118
}
83
119
120
+ function testNonPrimitivePipe ( ) {
121
+ console . log ( "hello" ) ;
122
+ }
123
+
84
124
function testNonPrimitiveRef ( ) {
85
125
console . log ( "hello" ) ;
86
126
}
87
127
88
128
let ForEach = {
89
129
testPrimitive : testPrimitive ,
130
+ testPrimitivePipe : testPrimitivePipe ,
90
131
testPrimitiveRef : testPrimitiveRef ,
91
132
testNone : testNone ,
133
+ testNonePipe : testNonePipe ,
92
134
testNoneRef : testNoneRef ,
93
135
testQualified : testQualified ,
136
+ testQualifiedPipe : testQualifiedPipe ,
94
137
testQualifiedRef : testQualifiedRef ,
95
138
testComplexExpr : testComplexExpr ,
139
+ testComplexExprPipe : testComplexExprPipe ,
96
140
testComplexExprRef : testComplexExprRef ,
97
141
testNestedCalls : testNestedCalls ,
142
+ testNestedCallsPipe : testNestedCallsPipe ,
98
143
testNestedCallsRef : testNestedCallsRef ,
99
144
testNamedCallback : testNamedCallback ,
145
+ testNamedCallbackPipe : testNamedCallbackPipe ,
100
146
testNamedCallbackRef : testNamedCallbackRef ,
101
147
testMultiple : testMultiple ,
148
+ testMultiplePipe : testMultiplePipe ,
102
149
testMultipleRef : testMultipleRef ,
103
150
testNonPrimitive : testNonPrimitive ,
151
+ testNonPrimitivePipe : testNonPrimitivePipe ,
104
152
testNonPrimitiveRef : testNonPrimitiveRef
105
153
} ;
106
154
@@ -109,6 +157,11 @@ function testPrimitive$1() {
109
157
console . log ( result ) ;
110
158
}
111
159
160
+ function testPrimitivePipe$1 ( ) {
161
+ let result = 42 + 1 | 0 ;
162
+ console . log ( result ) ;
163
+ }
164
+
112
165
function testPrimitiveRef$1 ( ) {
113
166
let result = 42 + 1 | 0 ;
114
167
console . log ( result ) ;
@@ -119,6 +172,11 @@ function testNone$1() {
119
172
console . log ( result ) ;
120
173
}
121
174
175
+ function testNonePipe$1 ( ) {
176
+ let result ;
177
+ console . log ( result ) ;
178
+ }
179
+
122
180
function testNoneRef$1 ( ) {
123
181
let result ;
124
182
console . log ( result ) ;
@@ -129,6 +187,11 @@ function testQualified$1() {
129
187
console . log ( result ) ;
130
188
}
131
189
190
+ function testQualifiedPipe$1 ( ) {
191
+ let result = "hello" + " world" ;
192
+ console . log ( result ) ;
193
+ }
194
+
132
195
function testQualifiedRef$1 ( ) {
133
196
let result = "hello" + " world" ;
134
197
console . log ( result ) ;
@@ -139,6 +202,11 @@ function testComplex() {
139
202
console . log ( result ) ;
140
203
}
141
204
205
+ function testComplexPipe ( ) {
206
+ let result = "true" ;
207
+ console . log ( result ) ;
208
+ }
209
+
142
210
function testComplexRef ( ) {
143
211
let result = "true" ;
144
212
console . log ( result ) ;
@@ -149,21 +217,31 @@ function testNamedCallback$1() {
149
217
console . log ( result ) ;
150
218
}
151
219
220
+ function testNamedCallbackPipe$1 ( ) {
221
+ let result = 42 + 1 | 0 ;
222
+ console . log ( result ) ;
223
+ }
224
+
152
225
function testNamedCallbackRef$1 ( ) {
153
226
let result = 42 + 1 | 0 ;
154
227
console . log ( result ) ;
155
228
}
156
229
157
230
let $$Map = {
158
231
testPrimitive : testPrimitive$1 ,
232
+ testPrimitivePipe : testPrimitivePipe$1 ,
159
233
testPrimitiveRef : testPrimitiveRef$1 ,
160
234
testNone : testNone$1 ,
235
+ testNonePipe : testNonePipe$1 ,
161
236
testNoneRef : testNoneRef$1 ,
162
237
testQualified : testQualified$1 ,
238
+ testQualifiedPipe : testQualifiedPipe$1 ,
163
239
testQualifiedRef : testQualifiedRef$1 ,
164
240
testComplex : testComplex ,
241
+ testComplexPipe : testComplexPipe ,
165
242
testComplexRef : testComplexRef ,
166
243
testNamedCallback : testNamedCallback$1 ,
244
+ testNamedCallbackPipe : testNamedCallbackPipe$1 ,
167
245
testNamedCallbackRef : testNamedCallbackRef$1
168
246
} ;
169
247
@@ -172,6 +250,11 @@ function testPrimitive$2() {
172
250
console . log ( result ) ;
173
251
}
174
252
253
+ function testPrimitivePipe$2 ( ) {
254
+ let result = 42 + 1 | 0 ;
255
+ console . log ( result ) ;
256
+ }
257
+
175
258
function testPrimitiveRef$2 ( ) {
176
259
let result = 42 + 1 | 0 ;
177
260
console . log ( result ) ;
@@ -182,6 +265,11 @@ function testNone$2() {
182
265
console . log ( result ) ;
183
266
}
184
267
268
+ function testNonePipe$2 ( ) {
269
+ let result ;
270
+ console . log ( result ) ;
271
+ }
272
+
185
273
function testNoneRef$2 ( ) {
186
274
let result ;
187
275
console . log ( result ) ;
@@ -192,6 +280,11 @@ function testQualified$2() {
192
280
console . log ( result ) ;
193
281
}
194
282
283
+ function testQualifiedPipe$2 ( ) {
284
+ let result = "hello" + " world" ;
285
+ console . log ( result ) ;
286
+ }
287
+
195
288
function testQualifiedRef$2 ( ) {
196
289
let result = "hello" + " world" ;
197
290
console . log ( result ) ;
@@ -202,6 +295,11 @@ function testComplex$1() {
202
295
console . log ( result ) ;
203
296
}
204
297
298
+ function testComplexPipe$1 ( ) {
299
+ let result = "true" ;
300
+ console . log ( result ) ;
301
+ }
302
+
205
303
function testComplexRef$1 ( ) {
206
304
let result = "true" ;
207
305
console . log ( result ) ;
@@ -212,21 +310,31 @@ function testNamedCallback$2() {
212
310
console . log ( result ) ;
213
311
}
214
312
313
+ function testNamedCallbackPipe$2 ( ) {
314
+ let result = 42 + 1 | 0 ;
315
+ console . log ( result ) ;
316
+ }
317
+
215
318
function testNamedCallbackRef$2 ( ) {
216
319
let result = 42 + 1 | 0 ;
217
320
console . log ( result ) ;
218
321
}
219
322
220
323
let FlatMap = {
221
324
testPrimitive : testPrimitive$2 ,
325
+ testPrimitivePipe : testPrimitivePipe$2 ,
222
326
testPrimitiveRef : testPrimitiveRef$2 ,
223
327
testNone : testNone$2 ,
328
+ testNonePipe : testNonePipe$2 ,
224
329
testNoneRef : testNoneRef$2 ,
225
330
testQualified : testQualified$2 ,
331
+ testQualifiedPipe : testQualifiedPipe$2 ,
226
332
testQualifiedRef : testQualifiedRef$2 ,
227
333
testComplex : testComplex$1 ,
334
+ testComplexPipe : testComplexPipe$1 ,
228
335
testComplexRef : testComplexRef$1 ,
229
336
testNamedCallback : testNamedCallback$2 ,
337
+ testNamedCallbackPipe : testNamedCallbackPipe$2 ,
230
338
testNamedCallbackRef : testNamedCallbackRef$2
231
339
} ;
232
340
0 commit comments