2020-09-13 21:01:17 +02:00
|
|
|
Class position
|
|
|
|
-----
|
|
|
|
<?php
|
|
|
|
|
2020-12-08 23:04:55 +01:00
|
|
|
if (1);
|
2020-09-13 21:01:17 +02:00
|
|
|
|
2020-12-08 23:04:55 +01:00
|
|
|
class C {}
|
2020-09-13 21:01:17 +02:00
|
|
|
-----
|
|
|
|
!!positions
|
|
|
|
array(
|
2020-12-08 23:04:55 +01:00
|
|
|
0: Stmt_If[3:1 - 3:7](
|
|
|
|
cond: Scalar_LNumber[3:5 - 3:5](
|
|
|
|
value: 1
|
|
|
|
)
|
|
|
|
stmts: array(
|
|
|
|
)
|
|
|
|
elseifs: array(
|
|
|
|
)
|
|
|
|
else: null
|
|
|
|
)
|
|
|
|
1: Stmt_Class[5:1 - 5:10](
|
2020-09-13 21:01:17 +02:00
|
|
|
attrGroups: array(
|
|
|
|
)
|
|
|
|
flags: 0
|
2020-12-08 23:04:55 +01:00
|
|
|
name: Identifier[5:7 - 5:7](
|
|
|
|
name: C
|
2020-09-13 21:01:17 +02:00
|
|
|
)
|
|
|
|
extends: null
|
|
|
|
implements: array(
|
|
|
|
)
|
|
|
|
stmts: array(
|
|
|
|
)
|
|
|
|
)
|
2020-12-08 23:04:55 +01:00
|
|
|
)
|
|
|
|
-----
|
|
|
|
<?php
|
|
|
|
|
|
|
|
if (1);
|
|
|
|
|
|
|
|
trait X {}
|
|
|
|
-----
|
|
|
|
!!positions
|
|
|
|
array(
|
|
|
|
0: Stmt_If[3:1 - 3:7](
|
|
|
|
cond: Scalar_LNumber[3:5 - 3:5](
|
|
|
|
value: 1
|
|
|
|
)
|
2020-09-13 21:01:17 +02:00
|
|
|
stmts: array(
|
|
|
|
)
|
2020-12-08 23:04:55 +01:00
|
|
|
elseifs: array(
|
|
|
|
)
|
|
|
|
else: null
|
2020-09-13 21:01:17 +02:00
|
|
|
)
|
2020-12-08 23:04:55 +01:00
|
|
|
1: Stmt_Trait[5:1 - 5:10](
|
2020-09-13 21:01:17 +02:00
|
|
|
attrGroups: array(
|
|
|
|
)
|
2020-12-08 23:04:55 +01:00
|
|
|
name: Identifier[5:7 - 5:7](
|
|
|
|
name: X
|
2020-09-13 21:01:17 +02:00
|
|
|
)
|
2020-12-08 23:04:55 +01:00
|
|
|
stmts: array(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
-----
|
|
|
|
<?php
|
|
|
|
|
|
|
|
if (1);
|
|
|
|
|
|
|
|
interface X {}
|
|
|
|
-----
|
|
|
|
!!positions
|
|
|
|
array(
|
|
|
|
0: Stmt_If[3:1 - 3:7](
|
|
|
|
cond: Scalar_LNumber[3:5 - 3:5](
|
|
|
|
value: 1
|
|
|
|
)
|
|
|
|
stmts: array(
|
|
|
|
)
|
|
|
|
elseifs: array(
|
|
|
|
)
|
|
|
|
else: null
|
|
|
|
)
|
|
|
|
1: Stmt_Interface[5:1 - 5:14](
|
|
|
|
attrGroups: array(
|
|
|
|
)
|
|
|
|
name: Identifier[5:11 - 5:11](
|
|
|
|
name: X
|
|
|
|
)
|
|
|
|
extends: array(
|
2020-09-13 21:01:17 +02:00
|
|
|
)
|
|
|
|
stmts: array(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|