123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- Static calls
- -----
- <?php
- // method name variations
- A::b();
- A::{'b'}();
- A::$b();
- A::$b['c']();
- A::$b['c']['d']();
- // array dereferencing
- A::b()['c'];
- // class name variations
- static::b();
- $a::b();
- ${'a'}::b();
- $a['b']::c();
- -----
- !!php5
- array(
- 0: Expr_StaticCall(
- class: Name(
- parts: array(
- 0: A
- )
- comments: array(
- 0: // method name variations
- )
- )
- name: b
- args: array(
- )
- comments: array(
- 0: // method name variations
- )
- )
- 1: Expr_StaticCall(
- class: Name(
- parts: array(
- 0: A
- )
- )
- name: Scalar_String(
- value: b
- )
- args: array(
- )
- )
- 2: Expr_StaticCall(
- class: Name(
- parts: array(
- 0: A
- )
- )
- name: Expr_Variable(
- name: b
- )
- args: array(
- )
- )
- 3: Expr_StaticCall(
- class: Name(
- parts: array(
- 0: A
- )
- )
- name: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: b
- )
- dim: Scalar_String(
- value: c
- )
- )
- args: array(
- )
- )
- 4: Expr_StaticCall(
- class: Name(
- parts: array(
- 0: A
- )
- )
- name: Expr_ArrayDimFetch(
- var: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: b
- )
- dim: Scalar_String(
- value: c
- )
- )
- dim: Scalar_String(
- value: d
- )
- )
- args: array(
- )
- )
- 5: Expr_ArrayDimFetch(
- var: Expr_StaticCall(
- class: Name(
- parts: array(
- 0: A
- )
- comments: array(
- 0: // array dereferencing
- )
- )
- name: b
- args: array(
- )
- comments: array(
- 0: // array dereferencing
- )
- )
- dim: Scalar_String(
- value: c
- )
- comments: array(
- 0: // array dereferencing
- )
- )
- 6: Expr_StaticCall(
- class: Name(
- parts: array(
- 0: static
- )
- comments: array(
- 0: // class name variations
- )
- )
- name: b
- args: array(
- )
- comments: array(
- 0: // class name variations
- )
- )
- 7: Expr_StaticCall(
- class: Expr_Variable(
- name: a
- )
- name: b
- args: array(
- )
- )
- 8: Expr_StaticCall(
- class: Expr_Variable(
- name: Scalar_String(
- value: a
- )
- )
- name: b
- args: array(
- )
- )
- 9: Expr_StaticCall(
- class: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: a
- )
- dim: Scalar_String(
- value: b
- )
- )
- name: c
- args: array(
- )
- )
- )
|