mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-12 09:09:41 +01:00
35306de32f
Fixes #704.
114 lines
2.5 KiB
Plaintext
114 lines
2.5 KiB
Plaintext
Keywords in namespaced name
|
|
-----
|
|
<?php
|
|
namespace fn;
|
|
namespace fn\use;
|
|
namespace self;
|
|
namespace parent;
|
|
namespace static;
|
|
fn\use();
|
|
\fn\use();
|
|
namespace\fn\use();
|
|
private\protected\public\static\abstract\final();
|
|
-----
|
|
!!php7
|
|
array(
|
|
0: Stmt_Namespace(
|
|
name: Name(
|
|
parts: array(
|
|
0: fn
|
|
)
|
|
)
|
|
stmts: array(
|
|
)
|
|
)
|
|
1: Stmt_Namespace(
|
|
name: Name(
|
|
parts: array(
|
|
0: fn
|
|
1: use
|
|
)
|
|
)
|
|
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
|
|
)
|
|
)
|
|
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(
|
|
)
|
|
)
|
|
)
|
|
2: Stmt_Expression(
|
|
expr: Expr_FuncCall(
|
|
name: Name_Relative(
|
|
parts: array(
|
|
0: fn
|
|
1: use
|
|
)
|
|
)
|
|
args: array(
|
|
)
|
|
)
|
|
)
|
|
3: Stmt_Expression(
|
|
expr: Expr_FuncCall(
|
|
name: Name(
|
|
parts: array(
|
|
0: private
|
|
1: protected
|
|
2: public
|
|
3: static
|
|
4: abstract
|
|
5: final
|
|
)
|
|
)
|
|
args: array(
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
) |