Lines Matching refs:ast
3 use ast\flags;
14 foreach (ast\get_metadata() as $data) {
57 function ast_dump($ast, int $options = 0) : string { argument
58 if ($ast instanceof ast\Node) {
59 $result = ast\get_kind_name($ast->kind);
62 $result .= " @ $ast->lineno";
63 if (isset($ast->endLineno)) {
64 $result .= "-$ast->endLineno";
68 … if ((ast\kind_uses_flags($ast->kind) && !is_combinable_flag($ast->kind)) || $ast->flags != 0) {
69 $result .= "\n flags: " . format_flags($ast->kind, $ast->flags);
71 foreach ($ast->children as $i => $child) {
78 } else if ($ast === null) {
80 } else if (is_string($ast)) {
81 return "\"$ast\"";
83 return (string) $ast;