2020-08-09 21:11:49 +02:00
|
|
|
Keywords in namespaced name
|
|
|
|
-----
|
|
|
|
<?php
|
2020-08-09 21:19:59 +02:00
|
|
|
namespace fn;
|
|
|
|
namespace fn\use;
|
2020-08-09 21:21:22 +02:00
|
|
|
namespace self;
|
|
|
|
namespace parent;
|
|
|
|
namespace static;
|
2020-08-09 21:11:49 +02:00
|
|
|
fn\use();
|
|
|
|
\fn\use();
|
|
|
|
namespace\fn\use();
|
2020-08-29 16:35:31 +02:00
|
|
|
private\protected\public\static\abstract\final();
|
2020-08-09 21:11:49 +02:00
|
|
|
-----
|
2020-08-09 21:19:59 +02:00
|
|
|
!!php7
|
2020-08-09 21:11:49 +02:00
|
|
|
array(
|
2020-08-09 21:19:59 +02:00
|
|
|
0: Stmt_Namespace(
|
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: fn
|
2020-08-09 21:11:49 +02:00
|
|
|
)
|
|
|
|
)
|
2020-08-09 21:19:59 +02:00
|
|
|
stmts: array(
|
|
|
|
)
|
2020-08-09 21:11:49 +02:00
|
|
|
)
|
2020-08-09 21:19:59 +02:00
|
|
|
1: Stmt_Namespace(
|
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: fn
|
|
|
|
1: use
|
2020-08-09 21:11:49 +02:00
|
|
|
)
|
|
|
|
)
|
2020-08-09 21:21:22 +02:00
|
|
|
stmts: array(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
2: Stmt_Namespace(
|
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: self
|
|
|
|
)
|
|
|
|
)
|
|
|
|
stmts: array(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
3: Stmt_Namespace(
|
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: parent
|
|
|
|
)
|
|
|
|
)
|
|
|
|
stmts: array(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
4: Stmt_Namespace(
|
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: static
|
|
|
|
)
|
|
|
|
)
|
2020-08-09 21:19:59 +02:00
|
|
|
stmts: array(
|
|
|
|
0: Stmt_Expression(
|
|
|
|
expr: Expr_FuncCall(
|
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: fn
|
|
|
|
1: use
|
|
|
|
)
|
|
|
|
)
|
|
|
|
args: array(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
1: Stmt_Expression(
|
|
|
|
expr: Expr_FuncCall(
|
|
|
|
name: Name_FullyQualified(
|
|
|
|
parts: array(
|
|
|
|
0: fn
|
|
|
|
1: use
|
|
|
|
)
|
|
|
|
)
|
|
|
|
args: array(
|
|
|
|
)
|
2020-08-09 21:11:49 +02:00
|
|
|
)
|
|
|
|
)
|
2020-08-09 21:19:59 +02:00
|
|
|
2: Stmt_Expression(
|
|
|
|
expr: Expr_FuncCall(
|
|
|
|
name: Name_Relative(
|
|
|
|
parts: array(
|
|
|
|
0: fn
|
|
|
|
1: use
|
|
|
|
)
|
|
|
|
)
|
|
|
|
args: array(
|
|
|
|
)
|
|
|
|
)
|
2020-08-09 21:11:49 +02:00
|
|
|
)
|
2020-08-29 16:35:31 +02:00
|
|
|
3: Stmt_Expression(
|
|
|
|
expr: Expr_FuncCall(
|
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: private
|
|
|
|
1: protected
|
|
|
|
2: public
|
|
|
|
3: static
|
|
|
|
4: abstract
|
|
|
|
5: final
|
|
|
|
)
|
|
|
|
)
|
|
|
|
args: array(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2020-08-09 21:11:49 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|