Lines Matching refs:single_type

1203 	zend_type *single_type;  in add_intersection_type()  local
1206 ZEND_TYPE_LIST_FOREACH(intersection_type_list, single_type) { in add_intersection_type()
1207 ZEND_ASSERT(!ZEND_TYPE_HAS_LIST(*single_type)); in add_intersection_type()
1208 ZEND_ASSERT(ZEND_TYPE_HAS_NAME(*single_type)); in add_intersection_type()
1209 zend_string *name = ZEND_TYPE_NAME(*single_type); in add_intersection_type()
1338 zend_type *single_type; in zend_mark_function_as_generator() local
1339 ZEND_TYPE_FOREACH(return_type, single_type) { in zend_mark_function_as_generator()
1340 if (ZEND_TYPE_HAS_NAME(*single_type) in zend_mark_function_as_generator()
1341 && is_generator_compatible_class_type(ZEND_TYPE_NAME(*single_type))) { in zend_mark_function_as_generator()
6406 …d_is_intersection_type_redundant_by_single_type(zend_type intersection_type, zend_type single_type) in zend_is_intersection_type_redundant_by_single_type() argument
6409 ZEND_ASSERT(!ZEND_TYPE_IS_INTERSECTION(single_type)); in zend_is_intersection_type_redundant_by_single_type()
6413 …if (zend_string_equals_ci(ZEND_TYPE_NAME(*single_intersection_type), ZEND_TYPE_NAME(single_type)))… in zend_is_intersection_type_redundant_by_single_type()
6414 zend_string *single_type_str = zend_type_to_string(single_type); in zend_is_intersection_type_redundant_by_single_type()
6461 zend_type single_type; in zend_compile_typename() local
6477 single_type = zend_compile_typename(type_ast, false); in zend_compile_typename()
6478 ZEND_ASSERT(ZEND_TYPE_IS_INTERSECTION(single_type)); in zend_compile_typename()
6480 type_list->types[type_list->num_types++] = single_type; in zend_compile_typename()
6485 zend_are_intersection_types_redundant(single_type, type_list->types[i]); in zend_compile_typename()
6489 zend_is_intersection_type_redundant_by_single_type(single_type, type_list->types[i]); in zend_compile_typename()
6494 single_type = zend_compile_single_typename(type_ast); in zend_compile_typename()
6495 uint32_t single_type_mask = ZEND_TYPE_PURE_MASK(single_type); in zend_compile_typename()
6500 if (ZEND_TYPE_IS_COMPLEX(single_type) && !ZEND_TYPE_IS_ITERABLE_FALLBACK(single_type)) { in zend_compile_typename()
6517 ZEND_TYPE_FULL_MASK(type) |= ZEND_TYPE_PURE_MASK(single_type); in zend_compile_typename()
6518 ZEND_TYPE_FULL_MASK(single_type) &= ~_ZEND_TYPE_MAY_BE_MASK; in zend_compile_typename()
6520 if (ZEND_TYPE_IS_COMPLEX(single_type)) { in zend_compile_typename()
6523 ZEND_TYPE_SET_PTR(type, ZEND_TYPE_NAME(single_type)); in zend_compile_typename()
6534 type_list->types[type_list->num_types++] = single_type; in zend_compile_typename()
6537 zend_is_type_list_redundant_by_single_type(type_list, single_type); in zend_compile_typename()
6575 zend_type single_type = zend_compile_single_typename(type_ast); in zend_compile_typename() local
6579 if (ZEND_TYPE_IS_ITERABLE_FALLBACK(single_type)) { in zend_compile_typename()
6580 zend_string *standard_type_str = zend_type_to_string(single_type); in zend_compile_typename()
6586 if (ZEND_TYPE_IS_ONLY_MASK(single_type)) { in zend_compile_typename()
6587 zend_string *standard_type_str = zend_type_to_string(single_type); in zend_compile_typename()
6593 if (zend_string_equals_literal_ci(ZEND_TYPE_NAME(single_type), "self") in zend_compile_typename()
6594 || zend_string_equals_literal_ci(ZEND_TYPE_NAME(single_type), "parent")) { in zend_compile_typename()
6596 "Type %s cannot be part of an intersection type", ZSTR_VAL(ZEND_TYPE_NAME(single_type))); in zend_compile_typename()
6600 type_list->types[type_list->num_types++] = single_type; in zend_compile_typename()
6603 zend_is_type_list_redundant_by_single_type(type_list, single_type); in zend_compile_typename()