File tree Expand file tree Collapse file tree 1 file changed +122
-0
lines changed
test/snapshot/__snapshots__ Expand file tree Collapse file tree 1 file changed +122
-0
lines changed Original file line number Diff line number Diff line change @@ -189,6 +189,128 @@ Program {
189
189
}
190
190
` ;
191
191
192
+ exports [` Function tests first class callable support 1` ] = `
193
+ Program {
194
+ " children" : Array [
195
+ ExpressionStatement {
196
+ " expression" : Assign {
197
+ " kind" : " assign" ,
198
+ " left" : Variable {
199
+ " curly" : false ,
200
+ " kind" : " variable" ,
201
+ " name" : " callable" ,
202
+ },
203
+ " operator" : " =" ,
204
+ " right" : Call {
205
+ " arguments" : Array [
206
+ 229 ,
207
+ ],
208
+ " kind" : " call" ,
209
+ " what" : Name {
210
+ " kind" : " name" ,
211
+ " name" : " strlen" ,
212
+ " resolution" : " uqn" ,
213
+ },
214
+ },
215
+ },
216
+ " kind" : " expressionstatement" ,
217
+ },
218
+ ExpressionStatement {
219
+ " expression" : Assign {
220
+ " kind" : " assign" ,
221
+ " left" : Variable {
222
+ " curly" : false ,
223
+ " kind" : " variable" ,
224
+ " name" : " callable" ,
225
+ },
226
+ " operator" : " =" ,
227
+ " right" : Call {
228
+ " arguments" : Array [
229
+ 229 ,
230
+ ],
231
+ " kind" : " call" ,
232
+ " what" : PropertyLookup {
233
+ " kind" : " propertylookup" ,
234
+ " offset" : Identifier {
235
+ " kind" : " identifier" ,
236
+ " name" : " doSomething" ,
237
+ },
238
+ " what" : Variable {
239
+ " curly" : false ,
240
+ " kind" : " variable" ,
241
+ " name" : " item" ,
242
+ },
243
+ },
244
+ },
245
+ },
246
+ " kind" : " expressionstatement" ,
247
+ },
248
+ ExpressionStatement {
249
+ " expression" : Assign {
250
+ " kind" : " assign" ,
251
+ " left" : Variable {
252
+ " curly" : false ,
253
+ " kind" : " variable" ,
254
+ " name" : " callable" ,
255
+ },
256
+ " operator" : " =" ,
257
+ " right" : Call {
258
+ " arguments" : Array [
259
+ 229 ,
260
+ ],
261
+ " kind" : " call" ,
262
+ " what" : StaticLookup {
263
+ " kind" : " staticlookup" ,
264
+ " offset" : Identifier {
265
+ " kind" : " identifier" ,
266
+ " name" : " doSomething" ,
267
+ },
268
+ " what" : Variable {
269
+ " curly" : false ,
270
+ " kind" : " variable" ,
271
+ " name" : " item" ,
272
+ },
273
+ },
274
+ },
275
+ },
276
+ " kind" : " expressionstatement" ,
277
+ },
278
+ ExpressionStatement {
279
+ " expression" : Assign {
280
+ " kind" : " assign" ,
281
+ " left" : Variable {
282
+ " curly" : false ,
283
+ " kind" : " variable" ,
284
+ " name" : " callable" ,
285
+ },
286
+ " operator" : " =" ,
287
+ " right" : Call {
288
+ " arguments" : Array [
289
+ 229 ,
290
+ ],
291
+ " kind" : " call" ,
292
+ " what" : StaticLookup {
293
+ " kind" : " staticlookup" ,
294
+ " offset" : Identifier {
295
+ " kind" : " identifier" ,
296
+ " name" : " doSomething" ,
297
+ },
298
+ " what" : Name {
299
+ " kind" : " name" ,
300
+ " name" : " Foo" ,
301
+ " resolution" : " uqn" ,
302
+ },
303
+ },
304
+ },
305
+ },
306
+ " kind" : " expressionstatement" ,
307
+ },
308
+ ],
309
+ " errors" : Array [],
310
+ " kind" : " program" ,
311
+ }
312
+ ` ;
313
+
192
314
exports [` Function tests implement #113 : typehint nodes 1` ] = `
193
315
Program {
194
316
" children" : Array [
You can’t perform that action at this time.
0 commit comments