php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
tokenizer_arginfo.h
Go to the documentation of this file.
1/* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: a89f03303f8a7d254509ae2bc46a36bb79a3c900 */
3
4ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_token_get_all, 0, 1, IS_ARRAY, 0)
8
9ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_token_name, 0, 1, IS_STRING, 0)
12
13#define arginfo_class_PhpToken_tokenize arginfo_token_get_all
14
15ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PhpToken___construct, 0, 0, 2)
21
22ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_PhpToken_is, 0, 1, _IS_BOOL, 0)
25
26ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_PhpToken_isIgnorable, 0, 0, _IS_BOOL, 0)
28
29ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_PhpToken_getTokenName, 0, 0, IS_STRING, 1)
31
32ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_PhpToken___toString, 0, 0, IS_STRING, 0)
34
38ZEND_METHOD(PhpToken, __construct);
40ZEND_METHOD(PhpToken, isIgnorable);
41ZEND_METHOD(PhpToken, getTokenName);
42ZEND_METHOD(PhpToken, __toString);
43
44static const zend_function_entry ext_functions[] = {
45 ZEND_FE(token_get_all, arginfo_token_get_all)
46 ZEND_FE(token_name, arginfo_token_name)
48};
49
50static const zend_function_entry class_PhpToken_methods[] = {
52 ZEND_ME(PhpToken, __construct, arginfo_class_PhpToken___construct, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
53 ZEND_ME(PhpToken, is, arginfo_class_PhpToken_is, ZEND_ACC_PUBLIC)
54 ZEND_ME(PhpToken, isIgnorable, arginfo_class_PhpToken_isIgnorable, ZEND_ACC_PUBLIC)
55 ZEND_ME(PhpToken, getTokenName, arginfo_class_PhpToken_getTokenName, ZEND_ACC_PUBLIC)
56 ZEND_ME(PhpToken, __toString, arginfo_class_PhpToken___toString, ZEND_ACC_PUBLIC)
58};
59
60static void register_tokenizer_symbols(int module_number)
61{
63}
64
65static zend_class_entry *register_class_PhpToken(zend_class_entry *class_entry_Stringable)
66{
67 zend_class_entry ce, *class_entry;
68
69 INIT_CLASS_ENTRY(ce, "PhpToken", class_PhpToken_methods);
70 class_entry = zend_register_internal_class_with_flags(&ce, NULL, 0);
71 zend_class_implements(class_entry, 1, class_entry_Stringable);
72
73 zval property_id_default_value;
74 ZVAL_UNDEF(&property_id_default_value);
75 zend_string *property_id_name = zend_string_init("id", sizeof("id") - 1, 1);
76 zend_declare_typed_property(class_entry, property_id_name, &property_id_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
77 zend_string_release(property_id_name);
78
79 zval property_text_default_value;
80 ZVAL_UNDEF(&property_text_default_value);
81 zend_string *property_text_name = zend_string_init("text", sizeof("text") - 1, 1);
82 zend_declare_typed_property(class_entry, property_text_name, &property_text_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
83 zend_string_release(property_text_name);
84
85 zval property_line_default_value;
86 ZVAL_UNDEF(&property_line_default_value);
87 zend_string *property_line_name = zend_string_init("line", sizeof("line") - 1, 1);
88 zend_declare_typed_property(class_entry, property_line_name, &property_line_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
89 zend_string_release(property_line_name);
90
91 zval property_pos_default_value;
92 ZVAL_UNDEF(&property_pos_default_value);
93 zend_string *property_pos_name = zend_string_init("pos", sizeof("pos") - 1, 1);
94 zend_declare_typed_property(class_entry, property_pos_name, &property_pos_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
95 zend_string_release(property_pos_name);
96
97 return class_entry;
98}
new_type kind
Definition ffi.c:4363
#define NULL
Definition gdcache.h:45
int line
Definition php_ffi.h:54
unsigned const char * pos
Definition php_ffi.h:52
unsigned const char * text
Definition php_ffi.h:53
#define TOKEN_PARSE
token_name(int $id)
token_get_all(string $code, int $flags=0)
#define arginfo_class_PhpToken_tokenize
ZEND_API zend_property_info * zend_declare_typed_property(zend_class_entry *ce, zend_string *name, zval *property, int access_type, zend_string *doc_comment, zend_type type)
Definition zend_API.c:4505
ZEND_API zend_class_entry * zend_register_internal_class_with_flags(zend_class_entry *class_entry, zend_class_entry *parent_ce, uint32_t ce_flags)
Definition zend_API.c:3512
ZEND_API void zend_class_implements(zend_class_entry *class_entry, int num_interfaces,...)
Definition zend_API.c:3527
#define ZEND_FE_END
Definition zend_API.h:124
struct _zend_function_entry zend_function_entry
#define ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(name, return_reference, required_num_args, type, allow_null)
Definition zend_API.h:205
#define INIT_CLASS_ENTRY(class_container, class_name, functions)
Definition zend_API.h:279
#define ZEND_ARG_INFO(pass_by_ref, name)
Definition zend_API.h:130
#define ZEND_METHOD(classname, name)
Definition zend_API.h:76
#define ZEND_END_ARG_INFO()
Definition zend_API.h:219
#define ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(pass_by_ref, name, type_hint, allow_null, default_value)
Definition zend_API.h:140
#define ZEND_ARG_TYPE_INFO(pass_by_ref, name, type_hint, allow_null)
Definition zend_API.h:138
#define ZEND_BEGIN_ARG_INFO_EX(name, _unused, return_reference, required_num_args)
Definition zend_API.h:214
#define ZEND_FE(name, arg_info)
Definition zend_API.h:86
#define ZEND_ME(classname, name, arg_info, flags)
Definition zend_API.h:91
#define ZEND_FUNCTION(name)
Definition zend_API.h:75
struct _zval_struct zval
#define ZEND_ACC_FINAL
#define ZEND_ACC_STATIC
#define ZEND_ACC_PUBLIC
#define CONST_PERSISTENT
#define REGISTER_LONG_CONSTANT(name, lval, flags)
struct _zend_string zend_string
struct _zend_class_entry zend_class_entry
#define MAY_BE_STRING
#define MAY_BE_LONG
#define ZVAL_UNDEF(z)
#define ZEND_TYPE_INIT_MASK(_type_mask)
Definition zend_types.h:283
#define IS_STRING
Definition zend_types.h:606
#define IS_ARRAY
Definition zend_types.h:607
#define IS_LONG
Definition zend_types.h:604
#define _IS_BOOL
Definition zend_types.h:629