2015-06-12 23:05:28 +02:00
|
|
|
Group use declarations
|
|
|
|
-----
|
|
|
|
<?php
|
|
|
|
use A\{B};
|
|
|
|
use A\{B\C, D};
|
2015-08-20 16:42:49 +02:00
|
|
|
use \A\B\{C\D, E};
|
2015-06-12 23:05:28 +02:00
|
|
|
use function A\{b\c, d};
|
2015-08-20 16:42:49 +02:00
|
|
|
use const \A\{B\C, D};
|
2015-06-13 11:27:38 +02:00
|
|
|
use A\B\{C\D, function b\c, const D};
|
2015-06-12 23:05:28 +02:00
|
|
|
-----
|
|
|
|
array(
|
|
|
|
0: Stmt_GroupUse(
|
2016-07-25 14:04:04 +02:00
|
|
|
type: TYPE_UNKNOWN (0)
|
2015-06-12 23:05:28 +02:00
|
|
|
prefix: Name(
|
|
|
|
parts: array(
|
|
|
|
0: A
|
|
|
|
)
|
|
|
|
)
|
|
|
|
uses: array(
|
|
|
|
0: Stmt_UseUse(
|
2016-07-25 14:04:04 +02:00
|
|
|
type: TYPE_NORMAL (1)
|
2015-06-12 23:05:28 +02:00
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: B
|
|
|
|
)
|
|
|
|
)
|
2017-04-28 21:05:01 +02:00
|
|
|
alias: null
|
2015-06-12 23:05:28 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
1: Stmt_GroupUse(
|
2016-07-25 14:04:04 +02:00
|
|
|
type: TYPE_UNKNOWN (0)
|
2015-06-12 23:05:28 +02:00
|
|
|
prefix: Name(
|
|
|
|
parts: array(
|
|
|
|
0: A
|
|
|
|
)
|
|
|
|
)
|
|
|
|
uses: array(
|
|
|
|
0: Stmt_UseUse(
|
2016-07-25 14:04:04 +02:00
|
|
|
type: TYPE_NORMAL (1)
|
2015-06-12 23:05:28 +02:00
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: B
|
|
|
|
1: C
|
|
|
|
)
|
|
|
|
)
|
2017-04-28 21:05:01 +02:00
|
|
|
alias: null
|
2015-06-12 23:05:28 +02:00
|
|
|
)
|
|
|
|
1: Stmt_UseUse(
|
2016-07-25 14:04:04 +02:00
|
|
|
type: TYPE_NORMAL (1)
|
2015-06-12 23:05:28 +02:00
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: D
|
|
|
|
)
|
|
|
|
)
|
2017-04-28 21:05:01 +02:00
|
|
|
alias: null
|
2015-06-12 23:05:28 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
2: Stmt_GroupUse(
|
2016-07-25 14:04:04 +02:00
|
|
|
type: TYPE_UNKNOWN (0)
|
2015-06-12 23:05:28 +02:00
|
|
|
prefix: Name(
|
|
|
|
parts: array(
|
|
|
|
0: A
|
|
|
|
1: B
|
|
|
|
)
|
|
|
|
)
|
|
|
|
uses: array(
|
|
|
|
0: Stmt_UseUse(
|
2016-07-25 14:04:04 +02:00
|
|
|
type: TYPE_NORMAL (1)
|
2015-06-12 23:05:28 +02:00
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: C
|
|
|
|
1: D
|
|
|
|
)
|
|
|
|
)
|
2017-04-28 21:05:01 +02:00
|
|
|
alias: null
|
2015-06-12 23:05:28 +02:00
|
|
|
)
|
|
|
|
1: Stmt_UseUse(
|
2016-07-25 14:04:04 +02:00
|
|
|
type: TYPE_NORMAL (1)
|
2015-06-12 23:05:28 +02:00
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: E
|
|
|
|
)
|
|
|
|
)
|
2017-04-28 21:05:01 +02:00
|
|
|
alias: null
|
2015-06-12 23:05:28 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
3: Stmt_GroupUse(
|
2016-07-25 14:04:04 +02:00
|
|
|
type: TYPE_FUNCTION (2)
|
2015-06-12 23:05:28 +02:00
|
|
|
prefix: Name(
|
|
|
|
parts: array(
|
|
|
|
0: A
|
|
|
|
)
|
|
|
|
)
|
|
|
|
uses: array(
|
|
|
|
0: Stmt_UseUse(
|
2016-07-25 14:04:04 +02:00
|
|
|
type: TYPE_UNKNOWN (0)
|
2015-06-12 23:05:28 +02:00
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: b
|
|
|
|
1: c
|
|
|
|
)
|
|
|
|
)
|
2017-04-28 21:05:01 +02:00
|
|
|
alias: null
|
2015-06-12 23:05:28 +02:00
|
|
|
)
|
|
|
|
1: Stmt_UseUse(
|
2016-07-25 14:04:04 +02:00
|
|
|
type: TYPE_UNKNOWN (0)
|
2015-06-12 23:05:28 +02:00
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: d
|
|
|
|
)
|
|
|
|
)
|
2017-04-28 21:05:01 +02:00
|
|
|
alias: null
|
2015-06-12 23:05:28 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
4: Stmt_GroupUse(
|
2016-07-25 14:04:04 +02:00
|
|
|
type: TYPE_CONSTANT (3)
|
2015-06-12 23:05:28 +02:00
|
|
|
prefix: Name(
|
|
|
|
parts: array(
|
|
|
|
0: A
|
|
|
|
)
|
|
|
|
)
|
|
|
|
uses: array(
|
|
|
|
0: Stmt_UseUse(
|
2016-07-25 14:04:04 +02:00
|
|
|
type: TYPE_UNKNOWN (0)
|
2015-06-12 23:05:28 +02:00
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: B
|
|
|
|
1: C
|
|
|
|
)
|
|
|
|
)
|
2017-04-28 21:05:01 +02:00
|
|
|
alias: null
|
2015-06-12 23:05:28 +02:00
|
|
|
)
|
|
|
|
1: Stmt_UseUse(
|
2016-07-25 14:04:04 +02:00
|
|
|
type: TYPE_UNKNOWN (0)
|
2015-06-13 11:27:38 +02:00
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: D
|
|
|
|
)
|
|
|
|
)
|
2017-04-28 21:05:01 +02:00
|
|
|
alias: null
|
2015-06-13 11:27:38 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
5: Stmt_GroupUse(
|
2016-07-25 14:04:04 +02:00
|
|
|
type: TYPE_UNKNOWN (0)
|
2015-06-13 11:27:38 +02:00
|
|
|
prefix: Name(
|
|
|
|
parts: array(
|
|
|
|
0: A
|
|
|
|
1: B
|
|
|
|
)
|
|
|
|
)
|
|
|
|
uses: array(
|
|
|
|
0: Stmt_UseUse(
|
2016-07-25 14:04:04 +02:00
|
|
|
type: TYPE_NORMAL (1)
|
2015-06-13 11:27:38 +02:00
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: C
|
|
|
|
1: D
|
|
|
|
)
|
|
|
|
)
|
2017-04-28 21:05:01 +02:00
|
|
|
alias: null
|
2015-06-13 11:27:38 +02:00
|
|
|
)
|
|
|
|
1: Stmt_UseUse(
|
2016-07-25 14:04:04 +02:00
|
|
|
type: TYPE_FUNCTION (2)
|
2015-06-13 11:27:38 +02:00
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: b
|
|
|
|
1: c
|
|
|
|
)
|
|
|
|
)
|
2017-04-28 21:05:01 +02:00
|
|
|
alias: null
|
2015-06-13 11:27:38 +02:00
|
|
|
)
|
|
|
|
2: Stmt_UseUse(
|
2016-07-25 14:04:04 +02:00
|
|
|
type: TYPE_CONSTANT (3)
|
2015-06-12 23:05:28 +02:00
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: D
|
|
|
|
)
|
|
|
|
)
|
2017-04-28 21:05:01 +02:00
|
|
|
alias: null
|
2015-06-12 23:05:28 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2016-07-25 14:04:04 +02:00
|
|
|
)
|