Skip to content

Commit ed09b38

Browse files
committed
Remove special name and docComment handling in AST dumper
These are normal child nodes since version 50, and 50 is the lowest supported version.
1 parent 4210eb1 commit ed09b38

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

util.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,6 @@ function ast_dump($ast, int $options = 0) : string {
6464
if (ast\kind_uses_flags($ast->kind) || $ast->flags != 0) {
6565
$result .= "\n flags: " . format_flags($ast->kind, $ast->flags);
6666
}
67-
if (isset($ast->name)) {
68-
$result .= "\n name: $ast->name";
69-
}
70-
if (isset($ast->docComment)) {
71-
$result .= "\n docComment: $ast->docComment";
72-
}
7367
foreach ($ast->children as $i => $child) {
7468
$result .= "\n $i: " . str_replace("\n", "\n ", ast_dump($child, $options));
7569
}

0 commit comments

Comments
 (0)