Mercurial > hg > isophonics-drupal-site
comparison vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/newDeref.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 New expression dereferencing | |
2 ----- | |
3 <?php | |
4 | |
5 (new A)->b; | |
6 (new A)->b(); | |
7 (new A)['b']; | |
8 (new A)['b']['c']; | |
9 ----- | |
10 array( | |
11 0: Expr_PropertyFetch( | |
12 var: Expr_New( | |
13 class: Name( | |
14 parts: array( | |
15 0: A | |
16 ) | |
17 ) | |
18 args: array( | |
19 ) | |
20 ) | |
21 name: b | |
22 ) | |
23 1: Expr_MethodCall( | |
24 var: Expr_New( | |
25 class: Name( | |
26 parts: array( | |
27 0: A | |
28 ) | |
29 ) | |
30 args: array( | |
31 ) | |
32 ) | |
33 name: b | |
34 args: array( | |
35 ) | |
36 ) | |
37 2: Expr_ArrayDimFetch( | |
38 var: Expr_New( | |
39 class: Name( | |
40 parts: array( | |
41 0: A | |
42 ) | |
43 ) | |
44 args: array( | |
45 ) | |
46 ) | |
47 dim: Scalar_String( | |
48 value: b | |
49 ) | |
50 ) | |
51 3: Expr_ArrayDimFetch( | |
52 var: Expr_ArrayDimFetch( | |
53 var: Expr_New( | |
54 class: Name( | |
55 parts: array( | |
56 0: A | |
57 ) | |
58 ) | |
59 args: array( | |
60 ) | |
61 ) | |
62 dim: Scalar_String( | |
63 value: b | |
64 ) | |
65 ) | |
66 dim: Scalar_String( | |
67 value: c | |
68 ) | |
69 ) | |
70 ) |