123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- Group use declarations
- -----
- <?php
- use A\{B};
- use A\{B\C, D};
- use \A\B\{C\D, E};
- use function A\{b\c, d};
- use const \A\{B\C, D};
- use A\B\{C\D, function b\c, const D};
- -----
- array(
- 0: Stmt_GroupUse(
- type: TYPE_UNKNOWN (0)
- prefix: Name(
- parts: array(
- 0: A
- )
- )
- uses: array(
- 0: Stmt_UseUse(
- type: TYPE_NORMAL (1)
- name: Name(
- parts: array(
- 0: B
- )
- )
- alias: B
- )
- )
- )
- 1: Stmt_GroupUse(
- type: TYPE_UNKNOWN (0)
- prefix: Name(
- parts: array(
- 0: A
- )
- )
- uses: array(
- 0: Stmt_UseUse(
- type: TYPE_NORMAL (1)
- name: Name(
- parts: array(
- 0: B
- 1: C
- )
- )
- alias: C
- )
- 1: Stmt_UseUse(
- type: TYPE_NORMAL (1)
- name: Name(
- parts: array(
- 0: D
- )
- )
- alias: D
- )
- )
- )
- 2: Stmt_GroupUse(
- type: TYPE_UNKNOWN (0)
- prefix: Name(
- parts: array(
- 0: A
- 1: B
- )
- )
- uses: array(
- 0: Stmt_UseUse(
- type: TYPE_NORMAL (1)
- name: Name(
- parts: array(
- 0: C
- 1: D
- )
- )
- alias: D
- )
- 1: Stmt_UseUse(
- type: TYPE_NORMAL (1)
- name: Name(
- parts: array(
- 0: E
- )
- )
- alias: E
- )
- )
- )
- 3: Stmt_GroupUse(
- type: TYPE_FUNCTION (2)
- prefix: Name(
- parts: array(
- 0: A
- )
- )
- uses: array(
- 0: Stmt_UseUse(
- type: TYPE_UNKNOWN (0)
- name: Name(
- parts: array(
- 0: b
- 1: c
- )
- )
- alias: c
- )
- 1: Stmt_UseUse(
- type: TYPE_UNKNOWN (0)
- name: Name(
- parts: array(
- 0: d
- )
- )
- alias: d
- )
- )
- )
- 4: Stmt_GroupUse(
- type: TYPE_CONSTANT (3)
- prefix: Name(
- parts: array(
- 0: A
- )
- )
- uses: array(
- 0: Stmt_UseUse(
- type: TYPE_UNKNOWN (0)
- name: Name(
- parts: array(
- 0: B
- 1: C
- )
- )
- alias: C
- )
- 1: Stmt_UseUse(
- type: TYPE_UNKNOWN (0)
- name: Name(
- parts: array(
- 0: D
- )
- )
- alias: D
- )
- )
- )
- 5: Stmt_GroupUse(
- type: TYPE_UNKNOWN (0)
- prefix: Name(
- parts: array(
- 0: A
- 1: B
- )
- )
- uses: array(
- 0: Stmt_UseUse(
- type: TYPE_NORMAL (1)
- name: Name(
- parts: array(
- 0: C
- 1: D
- )
- )
- alias: D
- )
- 1: Stmt_UseUse(
- type: TYPE_FUNCTION (2)
- name: Name(
- parts: array(
- 0: b
- 1: c
- )
- )
- alias: c
- )
- 2: Stmt_UseUse(
- type: TYPE_CONSTANT (3)
- name: Name(
- parts: array(
- 0: D
- )
- )
- alias: D
- )
- )
- )
- )
|