@@ -29,44 +29,80 @@ inline void declareProperties(reg::Class &cls)
2929 cls.property (" reasons" , ZEND_ACC_PUBLIC | ZEND_ACC_READONLY , reg::PropertyKind::Typed, MAY_BE_ARRAY );
3030}
3131
32+ /* the string and parameter tables the signatures below index into (see reg::Sig) */
33+ namespace sigtab {
34+ inline constexpr char strings[] =
35+ " result\0 " /* 0 */
36+ " PHPStan\\ TrinaryLogic\0 " /* 7 */
37+ " reasons\0 " /* 28 */
38+ " __construct\0 " /* 36 */
39+ " \0 " /* 48 */
40+ " yes\0 " /* 49 */
41+ " maybe\0 " /* 53 */
42+ " no\0 " /* 59 */
43+ " PHPStan\\ Type\\ AcceptsResult\0 " /* 62 */
44+ " createYes\0 " /* 89 */
45+ " []\0 " /* 99 */
46+ " createNo\0 " /* 102 */
47+ " createMaybe\0 " /* 111 */
48+ " value\0 " /* 123 */
49+ " createFromBoolean\0 " /* 129 */
50+ " other\0 " /* 147 */
51+ " and\0 " /* 153 */
52+ " or\0 " /* 157 */
53+ " cb\0 " /* 160 */
54+ " decorateReasons\0 " /* 163 */
55+ " operands\0 " /* 179 */
56+ " extremeIdentity\0 " /* 188 */
57+ " maxMin\0 " /* 204 */
58+ " objects\0 " /* 211 */
59+ " callback\0 " /* 219 */
60+ " lazyMaxMin" ; /* 228 */
61+ inline constexpr reg::PackedArg args[] = {
62+ reg::packed (0 , 0 , 7 ), /* __construct $result */
63+ reg::packed (28 , MAY_BE_ARRAY ), /* __construct $reasons */
64+ reg::packed (48 , MAY_BE_BOOL ), /* yes return */
65+ reg::packed (48 , MAY_BE_BOOL ), /* maybe return */
66+ reg::packed (48 , MAY_BE_BOOL ), /* no return */
67+ reg::packed (48 , 0 , 62 ), /* createYes return */
68+ reg::packed (28 , MAY_BE_ARRAY , reg::NoString, false , false , 99 ), /* createNo $reasons */
69+ reg::packed (48 , 0 , 62 ), /* createNo return */
70+ reg::packed (48 , 0 , 62 ), /* createMaybe return */
71+ reg::packed (123 , MAY_BE_BOOL ), /* createFromBoolean $value */
72+ reg::packed (48 , 0 , 62 ), /* createFromBoolean return */
73+ reg::packed (147 , 0 , 62 ), /* and $other */
74+ reg::packed (48 , 0 , 62 ), /* and return */
75+ reg::packed (147 , 0 , 62 ), /* or $other */
76+ reg::packed (48 , 0 , 62 ), /* or return */
77+ reg::packed (160 , MAY_BE_CALLABLE ), /* decorateReasons $cb */
78+ reg::packed (48 , 0 , 62 ), /* decorateReasons return */
79+ reg::packed (179 , 0 , 62 , false , true ), /* extremeIdentity $operands */
80+ reg::packed (48 , 0 , 62 ), /* extremeIdentity return */
81+ reg::packed (179 , 0 , 62 , false , true ), /* maxMin $operands */
82+ reg::packed (48 , 0 , 62 ), /* maxMin return */
83+ reg::packed (211 , MAY_BE_ARRAY ), /* lazyMaxMin $objects */
84+ reg::packed (219 , MAY_BE_CALLABLE ), /* lazyMaxMin $callback */
85+ reg::packed (48 , 0 , 62 ), /* lazyMaxMin return */
86+ };
87+ using Sig = reg::Sig<strings, args>;
88+ } // namespace sigtab
89+
3290/* the signatures of the methods the class declares itself (a used trait's are in the trait's header) */
3391namespace sig {
34- inline constexpr reg::Arg __construct_args[] = { reg::typed (" result" , 0 , " PHPStan\\ TrinaryLogic" ), reg::typed (" reasons" , MAY_BE_ARRAY ) };
35- inline constexpr reg::Sig __construct = { " __construct" , ZEND_ACC_PUBLIC , 2 , __construct_args, 2 , nullptr };
36- inline constexpr reg::Arg yes_return = reg::typed(" " , MAY_BE_BOOL );
37- inline constexpr reg::Sig yes = { " yes" , ZEND_ACC_PUBLIC , 0 , nullptr , 0 , &yes_return };
38- inline constexpr reg::Arg maybe_return = reg::typed(" " , MAY_BE_BOOL );
39- inline constexpr reg::Sig maybe = { " maybe" , ZEND_ACC_PUBLIC , 0 , nullptr , 0 , &maybe_return };
40- inline constexpr reg::Arg no_return = reg::typed(" " , MAY_BE_BOOL );
41- inline constexpr reg::Sig no = { " no" , ZEND_ACC_PUBLIC , 0 , nullptr , 0 , &no_return };
42- inline constexpr reg::Arg createYes_return = reg::typed(" " , 0 , " PHPStan\\ Type\\ AcceptsResult" );
43- inline constexpr reg::Sig createYes = { " createYes" , ZEND_ACC_PUBLIC | ZEND_ACC_STATIC , 0 , nullptr , 0 , &createYes_return };
44- inline constexpr reg::Arg createNo_args[] = { reg::typed (" reasons" , MAY_BE_ARRAY , nullptr , false , false , " []" ) };
45- inline constexpr reg::Arg createNo_return = reg::typed(" " , 0 , " PHPStan\\ Type\\ AcceptsResult" );
46- inline constexpr reg::Sig createNo = { " createNo" , ZEND_ACC_PUBLIC | ZEND_ACC_STATIC , 0 , createNo_args, 1 , &createNo_return };
47- inline constexpr reg::Arg createMaybe_return = reg::typed(" " , 0 , " PHPStan\\ Type\\ AcceptsResult" );
48- inline constexpr reg::Sig createMaybe = { " createMaybe" , ZEND_ACC_PUBLIC | ZEND_ACC_STATIC , 0 , nullptr , 0 , &createMaybe_return };
49- inline constexpr reg::Arg createFromBoolean_args[] = { reg::typed (" value" , MAY_BE_BOOL ) };
50- inline constexpr reg::Arg createFromBoolean_return = reg::typed(" " , 0 , " PHPStan\\ Type\\ AcceptsResult" );
51- inline constexpr reg::Sig createFromBoolean = { " createFromBoolean" , ZEND_ACC_PUBLIC | ZEND_ACC_STATIC , 1 , createFromBoolean_args, 1 , &createFromBoolean_return };
52- inline constexpr reg::Arg and__args[] = { reg::typed (" other" , 0 , " PHPStan\\ Type\\ AcceptsResult" ) };
53- inline constexpr reg::Arg and__return = reg::typed(" " , 0 , " PHPStan\\ Type\\ AcceptsResult" );
54- inline constexpr reg::Sig and_ = { " and" , ZEND_ACC_PUBLIC , 1 , and__args, 1 , &and__return };
55- inline constexpr reg::Arg or__args[] = { reg::typed (" other" , 0 , " PHPStan\\ Type\\ AcceptsResult" ) };
56- inline constexpr reg::Arg or__return = reg::typed(" " , 0 , " PHPStan\\ Type\\ AcceptsResult" );
57- inline constexpr reg::Sig or_ = { " or" , ZEND_ACC_PUBLIC , 1 , or__args, 1 , &or__return };
58- inline constexpr reg::Arg decorateReasons_args[] = { reg::typed (" cb" , MAY_BE_CALLABLE ) };
59- inline constexpr reg::Arg decorateReasons_return = reg::typed(" " , 0 , " PHPStan\\ Type\\ AcceptsResult" );
60- inline constexpr reg::Sig decorateReasons = { " decorateReasons" , ZEND_ACC_PUBLIC , 1 , decorateReasons_args, 1 , &decorateReasons_return };
61- inline constexpr reg::Arg extremeIdentity_args[] = { reg::typed (" operands" , 0 , " PHPStan\\ Type\\ AcceptsResult" , false , true ) };
62- inline constexpr reg::Arg extremeIdentity_return = reg::typed(" " , 0 , " PHPStan\\ Type\\ AcceptsResult" );
63- inline constexpr reg::Sig extremeIdentity = { " extremeIdentity" , ZEND_ACC_PUBLIC | ZEND_ACC_STATIC , 0 , extremeIdentity_args, 1 , &extremeIdentity_return };
64- inline constexpr reg::Arg maxMin_args[] = { reg::typed (" operands" , 0 , " PHPStan\\ Type\\ AcceptsResult" , false , true ) };
65- inline constexpr reg::Arg maxMin_return = reg::typed(" " , 0 , " PHPStan\\ Type\\ AcceptsResult" );
66- inline constexpr reg::Sig maxMin = { " maxMin" , ZEND_ACC_PUBLIC | ZEND_ACC_STATIC , 0 , maxMin_args, 1 , &maxMin_return };
67- inline constexpr reg::Arg lazyMaxMin_args[] = { reg::typed (" objects" , MAY_BE_ARRAY ), reg::typed (" callback" , MAY_BE_CALLABLE ) };
68- inline constexpr reg::Arg lazyMaxMin_return = reg::typed(" " , 0 , " PHPStan\\ Type\\ AcceptsResult" );
69- inline constexpr reg::Sig lazyMaxMin = { " lazyMaxMin" , ZEND_ACC_PUBLIC | ZEND_ACC_STATIC , 2 , lazyMaxMin_args, 2 , &lazyMaxMin_return };
92+ inline constexpr sigtab::Sig __construct = { { 36 /* __construct */ , 2 , 0 , 2 , reg::NoArg, ZEND_ACC_PUBLIC } };
93+ inline constexpr sigtab::Sig yes = { { 49 /* yes */ , 0 , 2 , 0 , 2 , ZEND_ACC_PUBLIC } };
94+ inline constexpr sigtab::Sig maybe = { { 53 /* maybe */ , 0 , 3 , 0 , 3 , ZEND_ACC_PUBLIC } };
95+ inline constexpr sigtab::Sig no = { { 59 /* no */ , 0 , 4 , 0 , 4 , ZEND_ACC_PUBLIC } };
96+ inline constexpr sigtab::Sig createYes = { { 89 /* createYes */ , 0 , 5 , 0 , 5 , ZEND_ACC_PUBLIC | ZEND_ACC_STATIC } };
97+ inline constexpr sigtab::Sig createNo = { { 102 /* createNo */ , 0 , 6 , 1 , 7 , ZEND_ACC_PUBLIC | ZEND_ACC_STATIC } };
98+ inline constexpr sigtab::Sig createMaybe = { { 111 /* createMaybe */ , 0 , 8 , 0 , 8 , ZEND_ACC_PUBLIC | ZEND_ACC_STATIC } };
99+ inline constexpr sigtab::Sig createFromBoolean = { { 129 /* createFromBoolean */ , 1 , 9 , 1 , 10 , ZEND_ACC_PUBLIC | ZEND_ACC_STATIC } };
100+ inline constexpr sigtab::Sig and_ = { { 153 /* and */ , 1 , 11 , 1 , 12 , ZEND_ACC_PUBLIC } };
101+ inline constexpr sigtab::Sig or_ = { { 157 /* or */ , 1 , 13 , 1 , 14 , ZEND_ACC_PUBLIC } };
102+ inline constexpr sigtab::Sig decorateReasons = { { 163 /* decorateReasons */ , 1 , 15 , 1 , 16 , ZEND_ACC_PUBLIC } };
103+ inline constexpr sigtab::Sig extremeIdentity = { { 188 /* extremeIdentity */ , 0 , 17 , 1 , 18 , ZEND_ACC_PUBLIC | ZEND_ACC_STATIC } };
104+ inline constexpr sigtab::Sig maxMin = { { 204 /* maxMin */ , 0 , 19 , 1 , 20 , ZEND_ACC_PUBLIC | ZEND_ACC_STATIC } };
105+ inline constexpr sigtab::Sig lazyMaxMin = { { 228 /* lazyMaxMin */ , 2 , 21 , 2 , 23 , ZEND_ACC_PUBLIC | ZEND_ACC_STATIC } };
70106} // namespace sig
71107
72108} // namespace ptdecl::AcceptsResult
0 commit comments