Home
last modified time | relevance | path

Searched refs:kind (Results 1 – 14 of 14) sorted by relevance

/php-ast/
H A Dutil.php25 $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 Dast.c419 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 Dast.stub.php23 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 Dast_stub.php249 * @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 Dast_arginfo.h16 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 Dphp_ast.h102 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 Dast_str_defs.h5 X(kind, "kind") \
H A DREADME.md49 * `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 Dast_data.c118 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 Dgenerate_ast_data.php239 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 Dconstructor.phpt13 // ?int $kind, ?int $flags, ?array $children, ?int $lineno, ?int $endLineno]
23 ["kind"]=>
33 ["kind"]=>
H A Dphp82_dynamic_property_attribute.phpt32 'kind' => NULL,
40 'kind' => NULL,
H A Dget_kind_name.phpt21 Unknown kind 12345
H A Dmetadata.phpt13 $kindUsesFlags = ast\kind_uses_flags($data->kind);

Completed in 52 milliseconds