1Class position
2-----
3<?php
4
5if (1);
6
7class C {}
8-----
9!!positions
10array(
11    0: Stmt_If[3:1 - 3:7](
12        cond: Scalar_Int[3:5 - 3:5](
13            value: 1
14        )
15        stmts: array(
16        )
17        elseifs: array(
18        )
19        else: null
20    )
21    1: Stmt_Class[5:1 - 5:10](
22        attrGroups: array(
23        )
24        flags: 0
25        name: Identifier[5:7 - 5:7](
26            name: C
27        )
28        extends: null
29        implements: array(
30        )
31        stmts: array(
32        )
33    )
34)
35-----
36<?php
37
38if (1);
39
40trait X {}
41-----
42!!positions
43array(
44    0: Stmt_If[3:1 - 3:7](
45        cond: Scalar_Int[3:5 - 3:5](
46            value: 1
47        )
48        stmts: array(
49        )
50        elseifs: array(
51        )
52        else: null
53    )
54    1: Stmt_Trait[5:1 - 5:10](
55        attrGroups: array(
56        )
57        name: Identifier[5:7 - 5:7](
58            name: X
59        )
60        stmts: array(
61        )
62    )
63)
64-----
65<?php
66
67if (1);
68
69interface X {}
70-----
71!!positions
72array(
73    0: Stmt_If[3:1 - 3:7](
74        cond: Scalar_Int[3:5 - 3:5](
75            value: 1
76        )
77        stmts: array(
78        )
79        elseifs: array(
80        )
81        else: null
82    )
83    1: Stmt_Interface[5:1 - 5:14](
84        attrGroups: array(
85        )
86        name: Identifier[5:11 - 5:11](
87            name: X
88        )
89        extends: array(
90        )
91        stmts: array(
92        )
93    )
94)
95