Mercurial > hg > isophonics-drupal-site
comparison vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/args.test @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children | 5fb285c0d0e3 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 Arguments | |
2 ----- | |
3 <?php | |
4 | |
5 f(); | |
6 f($a); | |
7 f($a, $b); | |
8 f(&$a); | |
9 f($a, ...$b); | |
10 ----- | |
11 array( | |
12 0: Expr_FuncCall( | |
13 name: Name( | |
14 parts: array( | |
15 0: f | |
16 ) | |
17 ) | |
18 args: array( | |
19 ) | |
20 ) | |
21 1: Expr_FuncCall( | |
22 name: Name( | |
23 parts: array( | |
24 0: f | |
25 ) | |
26 ) | |
27 args: array( | |
28 0: Arg( | |
29 value: Expr_Variable( | |
30 name: a | |
31 ) | |
32 byRef: false | |
33 unpack: false | |
34 ) | |
35 ) | |
36 ) | |
37 2: Expr_FuncCall( | |
38 name: Name( | |
39 parts: array( | |
40 0: f | |
41 ) | |
42 ) | |
43 args: array( | |
44 0: Arg( | |
45 value: Expr_Variable( | |
46 name: a | |
47 ) | |
48 byRef: false | |
49 unpack: false | |
50 ) | |
51 1: Arg( | |
52 value: Expr_Variable( | |
53 name: b | |
54 ) | |
55 byRef: false | |
56 unpack: false | |
57 ) | |
58 ) | |
59 ) | |
60 3: Expr_FuncCall( | |
61 name: Name( | |
62 parts: array( | |
63 0: f | |
64 ) | |
65 ) | |
66 args: array( | |
67 0: Arg( | |
68 value: Expr_Variable( | |
69 name: a | |
70 ) | |
71 byRef: true | |
72 unpack: false | |
73 ) | |
74 ) | |
75 ) | |
76 4: Expr_FuncCall( | |
77 name: Name( | |
78 parts: array( | |
79 0: f | |
80 ) | |
81 ) | |
82 args: array( | |
83 0: Arg( | |
84 value: Expr_Variable( | |
85 name: a | |
86 ) | |
87 byRef: false | |
88 unpack: false | |
89 ) | |
90 1: Arg( | |
91 value: Expr_Variable( | |
92 name: b | |
93 ) | |
94 byRef: false | |
95 unpack: true | |
96 ) | |
97 ) | |
98 ) | |
99 ) |