Searched refs:kind (Results 1 – 14 of 14) sorted by relevance
/php-ast/ |
H A D | util.php | 25 $info[(int) $data->flagsCombinable][$data->kind] = $flagMap; 30 function is_combinable_flag(int $kind) : bool { argument 31 return isset(get_flag_info()[1][$kind]); 34 function format_flags(int $kind, int $flags) : string { argument 36 if (isset($exclusive[$kind])) { 37 $flagInfo = $exclusive[$kind]; 41 } else if (isset($combinable[$kind])) { 42 $flagInfo = $combinable[$kind]; 59 $result = ast\get_kind_name($ast->kind); 68 … if ((ast\kind_uses_flags($ast->kind) && !is_combinable_flag($ast->kind)) || $ast->flags != 0) { [all …]
|
H A D | ast.c | 419 return kind == ZEND_AST_PARAM || kind == ZEND_AST_TYPE || kind == ZEND_AST_TRAIT_ALIAS in ast_kind_uses_attr() 420 || kind == ZEND_AST_UNARY_OP || kind == ZEND_AST_BINARY_OP || kind == ZEND_AST_ASSIGN_OP in ast_kind_uses_attr() 421 || kind == ZEND_AST_CAST || kind == ZEND_AST_MAGIC_CONST || kind == ZEND_AST_ARRAY_ELEM in ast_kind_uses_attr() 422 || kind == ZEND_AST_INCLUDE_OR_EVAL || kind == ZEND_AST_USE || kind == ZEND_AST_PROP_DECL in ast_kind_uses_attr() 424 || kind == ZEND_AST_GROUP_USE || kind == ZEND_AST_USE_ELEM in ast_kind_uses_attr() 425 || kind == AST_NAME || kind == AST_CLOSURE_VAR || kind == ZEND_AST_CLASS_CONST_DECL in ast_kind_uses_attr() 427 || kind == ZEND_AST_ARRAY || kind == ZEND_AST_DIM || kind == ZEND_AST_CONDITIONAL in ast_kind_uses_attr() 433 return kind == ZEND_AST_FUNC_DECL || kind == ZEND_AST_CLOSURE in ast_kind_is_decl() 436 || kind == ZEND_AST_METHOD || kind == ZEND_AST_CLASS; in ast_kind_is_decl() 1055 zend_ast_kind kind = ast->kind; in ast_to_zval() local [all …]
|
H A D | ast.stub.php | 23 function get_kind_name(int $kind): string {} argument 25 function kind_uses_flags(int $kind): bool {} argument 38 …public function __construct(?int $kind = null, ?int $flags = null, ?array $children = null, ?int $… argument
|
H A D | ast_stub.php | 249 * @param int $kind AST_* constant value defining the kind of an AST node 252 function get_kind_name(int $kind): string argument 257 * @param int $kind AST_* constant value defining the kind of an AST node 260 function kind_uses_flags(int $kind): bool argument 293 public $kind; variable in ast\\Node 312 …public function __construct(int $kind = null, int $flags = null, array $children = null, int $line… argument 313 $this->kind = $kind; 326 public $kind; variable in ast\\Metadata
|
H A D | ast_arginfo.h | 16 ZEND_ARG_TYPE_INFO(0, kind, IS_LONG, 0) 20 ZEND_ARG_TYPE_INFO(0, kind, IS_LONG, 0) 31 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, kind, IS_LONG, 1, "null")
|
H A D | php_ast.h | 102 const char *ast_kind_to_name(zend_ast_kind kind); 103 zend_string *ast_kind_child_name(zend_ast_kind kind, uint32_t child);
|
H A D | ast_str_defs.h | 5 X(kind, "kind") \
|
H A D | README.md | 49 * `ast\AST_*` kind constants 53 * `ast\get_kind_name(int $kind)` 54 * `ast\kind_uses_flags(int $kind)` 77 public $kind; 117 ["kind"]=> 127 ["kind"]=> 137 ["kind"]=> 190 `ast\get_kind_name()` returns a string name for an integral node kind. 192 `ast\kind_uses_flags()` determines whether the `flags` of a node kind may ever be non-zero. 201 public $kind; [all …]
|
H A D | ast_data.c | 118 const char *ast_kind_to_name(zend_ast_kind kind) { in ast_kind_to_name() argument 119 switch (kind) { in ast_kind_to_name() 235 zend_string *ast_kind_child_name(zend_ast_kind kind, uint32_t child) { in ast_kind_child_name() argument 236 switch (kind) { in ast_kind_child_name()
|
/php-ast/scripts/ |
H A D | generate_ast_data.php | 239 foreach ($names as $kind => $children) { 241 $implementations["\t\t\treturn NULL;"][] = $kind; 251 $implementations[$body][] = $kind; 256 foreach ($kindList as $kind) { 257 $codeForGroup .= "\t\tcase $kind:\n"; 284 foreach ($spec as $kind => $children) {
|
/php-ast/tests/ |
H A D | constructor.phpt | 13 // ?int $kind, ?int $flags, ?array $children, ?int $lineno, ?int $endLineno] 23 ["kind"]=> 33 ["kind"]=>
|
H A D | php82_dynamic_property_attribute.phpt | 32 'kind' => NULL, 40 'kind' => NULL,
|
H A D | get_kind_name.phpt | 21 Unknown kind 12345
|
H A D | metadata.phpt | 13 $kindUsesFlags = ast\kind_uses_flags($data->kind);
|
Completed in 52 milliseconds