Lines Matching refs:i
439 static inline zend_bool ast_is_name(zend_ast *ast, zend_ast *parent, uint32_t i) { in ast_is_name() argument
461 if (i == 0) { in ast_is_name()
475 if (i == 2) { in ast_is_name()
480 if (i == 1) { in ast_is_name()
484 if (i == 3) { in ast_is_name()
493 if (i == 4) { in ast_is_name()
502 static inline zend_bool ast_is_type(zend_ast *ast, zend_ast *parent, uint32_t i) { in ast_is_type() argument
513 if (i == 0) { in ast_is_type()
521 if (i == 2) { in ast_is_type()
525 if (i == 3) { in ast_is_type()
533 if (i == 4) { in ast_is_type()
540 static inline zend_bool ast_is_var_name(zend_ast *ast, zend_ast *parent, uint32_t i) { in ast_is_var_name() argument
541 return (parent->kind == ZEND_AST_STATIC && i == 0) in ast_is_var_name()
542 || (parent->kind == ZEND_AST_CATCH && i == 1 && ast != NULL); in ast_is_var_name()
546 static inline zend_bool ast_should_normalize_list(zend_ast *ast, zend_ast *parent, uint32_t i) { in ast_should_normalize_list() argument
551 if (i == 0) { in ast_should_normalize_list()
554 if (i == 1) { in ast_should_normalize_list()
561 if (i == 2) { in ast_should_normalize_list()
564 if (i == 3) { in ast_should_normalize_list()
651 uint32_t i; in ast_create_virtual_node_ex() local
665 for (i = 0; i < num_children; i++) { in ast_create_virtual_node_ex()
667 zend_string *child_name = ast_kind_child_name(kind, i); in ast_create_virtual_node_ex()
685 static inline void ast_name_to_zval(zend_ast *child, zend_ast *ast, zval *child_zv, int i, ast_stat… in ast_name_to_zval() argument
706 && ast_is_type(child, ast, i) in ast_name_to_zval()
727 uint32_t i, count; in ast_fill_children_ht() local
731 for (i = 0; i < count; ++i) { in ast_fill_children_ht()
732 zend_ast *child = children[i]; in ast_fill_children_ht()
733 zend_string *child_name = !is_list ? ast_kind_child_name(ast_kind, i) : NULL; in ast_fill_children_ht()
750 if (i >= 3) { in ast_fill_children_ht()
759 if (i == 4) { in ast_fill_children_ht()
764 if (i >= 3) { in ast_fill_children_ht()
769 if (i == 2) { in ast_fill_children_ht()
776 if (ast_kind == ZEND_AST_CLASS && i == 4) { in ast_fill_children_ht()
783 if (ast_kind == ZEND_AST_CLASS_CONST_GROUP && i == 2) { in ast_fill_children_ht()
790 if (ast_kind == ZEND_AST_PROP_ELEM && i == 3) { in ast_fill_children_ht()
795 if (ast_kind == ZEND_AST_PROPERTY_HOOK && (i == 1 || i == 3)) { in ast_fill_children_ht()
800 if (ast_kind == ZEND_AST_PARAM && i == 5) { in ast_fill_children_ht()
808 if (ast_is_name(child, ast, i)) { in ast_fill_children_ht()
809 ast_name_to_zval(child, ast, &child_zv, i, state); in ast_fill_children_ht()
815 } else if (ast_is_var_name(child, ast, i)) { in ast_fill_children_ht()
817 } else if (ast_should_normalize_list(child, ast, i)) { in ast_fill_children_ht()
827 } else if (state->version >= 60 && i == 1 in ast_fill_children_ht()
832 } else if (i == 1 && ast_kind == ZEND_AST_ARROW_FUNC) { in ast_fill_children_ht()
844 if (ast_kind == ZEND_AST_ARROW_FUNC && i == 2) { in ast_fill_children_ht()
1148 size_t i; in ast_version_info() local
1153 for (i = 0; i < versions_count; ++i) { in ast_version_info()
1154 if (i != 0) smart_str_appends(&str, ", "); in ast_version_info()
1155 smart_str_append_long(&str, versions[i]); in ast_version_info()
1164 size_t i; in ast_version_known() local
1165 for (i = 0; i < versions_count; ++i) { in ast_version_known()
1166 if (version == versions[i]) { in ast_version_known()
1300 size_t i, flag_info_count = sizeof(flag_info)/sizeof(ast_flag_info); in ast_get_flag_info() local
1301 for (i = 0; i < flag_info_count; i++) { in ast_get_flag_info()
1302 const ast_flag_info *info = &flag_info[i]; in ast_get_flag_info()
1311 size_t i; in ast_build_metadata() local
1313 for (i = 0; i < ast_kinds_count; i++) { in ast_build_metadata()
1314 zend_ast_kind kind = ast_kinds[i]; in ast_build_metadata()
1359 size_t i; in PHP_FUNCTION() local
1366 for (i = 0; i < versions_count; i++) { in PHP_FUNCTION()
1367 zend_long version = versions[i]; in PHP_FUNCTION()