mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-03 17:57:59 +01:00
50 lines
904 B
Plaintext
50 lines
904 B
Plaintext
Different name types
|
|
-----
|
|
<?php
|
|
|
|
A;
|
|
A\B;
|
|
\A\B;
|
|
namespace\A\B;
|
|
-----
|
|
array(
|
|
0: Stmt_Expression(
|
|
expr: Expr_ConstFetch(
|
|
name: Name(
|
|
parts: array(
|
|
0: A
|
|
)
|
|
)
|
|
)
|
|
)
|
|
1: Stmt_Expression(
|
|
expr: Expr_ConstFetch(
|
|
name: Name(
|
|
parts: array(
|
|
0: A
|
|
1: B
|
|
)
|
|
)
|
|
)
|
|
)
|
|
2: Stmt_Expression(
|
|
expr: Expr_ConstFetch(
|
|
name: Name_FullyQualified(
|
|
parts: array(
|
|
0: A
|
|
1: B
|
|
)
|
|
)
|
|
)
|
|
)
|
|
3: Stmt_Expression(
|
|
expr: Expr_ConstFetch(
|
|
name: Name_Relative(
|
|
parts: array(
|
|
0: A
|
|
1: B
|
|
)
|
|
)
|
|
)
|
|
)
|
|
) |