1 | <?php |
||
19 | class AdapterVisitor implements \PhpParser\NodeVisitor { |
||
20 | /** |
||
21 | * @var LocationImpl |
||
22 | */ |
||
23 | protected $location; |
||
24 | |||
25 | /** |
||
26 | * @var Insert |
||
27 | */ |
||
28 | protected $insert; |
||
29 | |||
30 | /** |
||
31 | * @var ASTVisitor |
||
32 | */ |
||
33 | protected $visitor; |
||
34 | |||
35 | /** |
||
36 | * This is used to exit early in enterNode and to break enterNode apart |
||
37 | * into many methods. |
||
38 | * |
||
39 | * @var array<string,string> |
||
40 | */ |
||
41 | protected $jump_labels; |
||
42 | |||
43 | 25 | public function __construct(LocationImpl $location, Insert $insert, ASTVisitor $visitor) { |
|
50 | |||
51 | 25 | protected function jump_labels_are_correct() { |
|
62 | |||
63 | /** |
||
64 | * @inheritdoc |
||
65 | */ |
||
66 | 25 | public function beforeTraverse(array $nodes) { |
|
68 | |||
69 | /** |
||
70 | * @inheritdoc |
||
71 | */ |
||
72 | 25 | public function afterTraverse(array $nodes) { |
|
74 | |||
75 | /** |
||
76 | * @inheritdoc |
||
77 | */ |
||
78 | 25 | public function enterNode(\PhpParser\Node $node) { |
|
88 | |||
89 | /** |
||
90 | * @inheritdoc |
||
91 | */ |
||
92 | 25 | public function leaveNode(\PhpParser\Node $node) { |
|
94 | } |
||
95 |