Branch: 6 branches
| Branch | True | False | Total |
| @_ < 5 and Function::Parameters::_croak('Too few arguments for method _collect_fields (expected 5, got ' . @_ . ')') |
156 |
966 |
1122 |
| @_ > 5 and Function::Parameters::_croak('Too many arguments for method _collect_fields (expected 5, got ' . @_ . ')') |
2169 |
970 |
3139 |
| Ref::Util::XS::is_plain_hashref($context) or Function::Parameters::_croak('In method _collect_fields: parameter 1 ($context): ' . ${my $v = bless( {"_is_core" => 1,"_overload_coderef" => sub { package Sub::Defer; use warnings; use strict; $undeferred ||= undefer_sub($deferred_info->[4]); goto \&$undeferred;},"_overload_coderef_no_rebuild" => 1,"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_HashRef","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"coercion_generator" => sub { package Types::Standard::HashRef; no warnings; use strict; my($parent, $child, $param) = @_; return unless $param->has_coercion; my $coercable_item = $param->coercion->_source_type_union; my $C = 'Type::Coercion'->new('type_constraint', $child); if ($param->coercion->can_be_inlined and $coercable_item->can_be_inlined) { $C->add_type_coercions($parent, &Types::Standard::Stringable(sub { my @code; push @code, 'do { my ($orig, $return_orig, %new) = ($_, 0);'; push @code, 'for (keys %$orig) {'; push @code, sprintf('$return_orig++ && last unless (%s);', $coercable_item->inline_check('$orig->{$_}')); push @code, sprintf('$new{$_} = (%s);', $param->coercion->inline_coercion('$orig->{$_}')); push @code, '}'; push @code, '$return_orig ? $orig : \\%new'; push @code, '}'; join $", @code; } )); } else { $C->add_type_coercions($parent, sub { my $value = @_ ? $_[0] : $_; my %new; foreach my $k (keys %$value) { return $value unless $coercable_item->check($value->{$k}); $new{$k} = $param->coerce($value->{$k}); } return \%new; } ); } return $C;},"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; ref $_ eq 'HASH';},"constraint_generator" => sub { package Types::Standard::HashRef; no warnings; use strict; return &Types::Standard::HashRef() unless @_; require Error::TypeTiny::WrongNumberOfParameters; Type::Tiny::check_parameter_count_for_parameterized_type('Types::Standard', 'HashRef', \@_, 1); my $param = shift(); Types::TypeTiny::is_TypeTiny($param) or _croak "Parameter to HashRef[`a] expected to be a type constraint; got $param"; my $param_compiled_check = $param->compiled_check; my $xsub; do { my $paramname = Type::Tiny::XS::is_known($param_compiled_check); $xsub = Type::Tiny::XS::get_coderef_for("HashRef[$paramname]") if $paramname }; return sub { my $hash = shift(); ($param->check($_) or return) foreach (values %$hash); return !0; } , $xsub;},"deep_explanation" => sub { package Types::Standard::HashRef; no warnings; use strict; require B; my($type, $value, $varname) = @_; my $param = $type->parameters->[0]; foreach my $k (sort keys %$value) { my $item = $value->{$k}; next if $param->check($item); return [sprintf('"%s" constrains each value in the hash with "%s"', $type, $param), @{$param->validate_explain($item, sprintf('%s->{%s}', $varname, B::perlstring($k)));}]; } return;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 544,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "HashRef","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard::HashRef; no warnings; use strict; my $param = shift(); my $compiled = $param->compiled_check; my $xsubname; unless ($Type::Tiny::AvoidCallbacks) { my $paramname = Type::Tiny::XS::is_known($compiled); $xsubname = Type::Tiny::XS::get_subname_for("HashRef[$paramname]"); } return unless $param->can_be_inlined; return sub { my $v = $_[1]; return "$xsubname($v)" if $xsubname and not $Type::Tiny::AvoidCallbacks; my $p = &Types::Standard::HashRef()->inline_check($v); my $param_check = $param->inline_check('$i'); "$p and do { " . 'my $ok = 1; ' . "for my \$i (values %{$v}) { " . "(\$ok = 0, last) unless $param_check " . '}; ' . '$ok ' . '}'; } ;},"inlined" => sub { package Types::Standard; no warnings; use strict; !$Type::Tiny::AvoidCallbacks ? "Ref::Util::XS::is_plain_hashref($_[1])" : "ref($_[1]) eq 'HASH'";},"library" => "Types::Standard","my_methods" => {"hashref_allows_key" => sub { package Types::Standard::HashRef; no warnings; use strict; my $self = shift(); Types::Standard::is_Str($_[0]);},"hashref_allows_value" => sub { package Types::Standard::HashRef; no warnings; use strict; my $self = shift(); my($key, $value) = @_; return !1 unless $self->my_hashref_allows_key($key); return !0 if $self == &Types::Standard::HashRef(); my $href = $self->find_parent(sub { $_->has_parent and $_->parent == &Types::Standard::HashRef(); } ); my $param = $href->type_parameter; Types::Standard::is_Str($key) and $param->check($value);}},"name" => "HashRef","name_generator" => sub { package Type::Tiny; use warnings; use strict; defined $_ and s/[\x00-\x1F]//gms foreach (my($s, @a) = @_); sprintf '%s[%s]', $s, join(',', map((!defined($_) ? 'undef' : (!ref($_) && /\W/ ? B::perlstring($_) : $_)), @a));},"parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; not ref $_[0] and _failed_check(16, 'Ref', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Ref","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; ref $_;},"constraint_generator" => sub { package Types::Standard; no warnings; use strict; return $meta->get_type('Ref') unless @_; Type::Tiny::check_parameter_count_for_parameterized_type('Types::Standard', 'Ref', \@_, 1); my $reftype = shift(); $reftype =~ /^(SCALAR|ARRAY|HASH|CODE|REF|GLOB|LVALUE|FORMAT|IO|VSTRING|REGEXP|Regexp)$/i or _croak "Parameter to Ref[`a] expected to be a Perl ref type; got $reftype"; $reftype = "$reftype"; return sub { ref $_[0] and builtin::reftype($_[0]) eq $reftype; } ;},"deep_explanation" => sub { package Types::Standard; no warnings; use strict; require B; my($type, $value, $varname) = @_; my $param = $type->parameters->[0]; return if $type->check($value); my $reftype = builtin::reftype($value); return [sprintf('"%s" constrains reftype(%s) to be equal to %s', $type, $varname, B::perlstring($param)), sprintf('reftype(%s) is %s', $varname, defined $reftype ? B::perlstring($reftype) : 'undef')];},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 438,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Ref","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard; no warnings; use strict; my $reftype = shift(); return sub { my $v = $_[1]; &$maybe_load_modules('Scalar::Util', "ref($v) and Scalar::Util::reftype($v) eq q($reftype)"); } ;},"inlined" => sub { package Types::Standard; no warnings; use strict; "!!ref($_[1])";},"library" => "Types::Standard","name" => "Ref","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; defined $_[0] or _failed_check(7, 'Defined', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Defined","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complementary_type" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; defined $_[0] and _failed_check(6, 'Undef', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Undef","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complementary_type" => {},"constraint" => sub { package Types::Standard; no warnings; use strict; not defined $_;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 254,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Undef","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; "!defined($_[1])";},"library" => "Types::Standard","name" => "Undef","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; '???'; $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Item","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Type::Tiny; use warnings; use strict; !0;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 226,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Item","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; '!!1';},"library" => "Types::Standard","name" => "Item","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Sub::Defer; use warnings; use strict; $undeferred ||= undefer_sub($deferred_info->[4]); goto \&$undeferred;},"_overload_coderef_no_rebuild" => 1,"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => do{my $o},"display_name" => "to_Any","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complement_name" => "None","constraint" => do{my $o},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 220,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Any","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; '!!1';},"library" => "Types::Standard","name" => "Any","type_default" => sub { package Types::Standard; no warnings; use strict; return undef;},"uniq" => 1}, 'Type::Tiny' ),"uniq" => 2}, 'Type::Tiny' ),"type_default" => sub { package Types::Standard; no warnings; use strict; return undef;},"uniq" => 6}, 'Type::Tiny' ),"constraint" => sub { package Types::Standard; no warnings; use strict; defined $_;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 262,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Defined","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; "defined($_[1])";},"library" => "Types::Standard","name" => "Defined","parent" => {},"uniq" => 7}, 'Type::Tiny' ),"uniq" => 16}, 'Type::Tiny' ),"type_default" => sub { package Types::Standard; no warnings; use strict; return {};},"type_default_generator" => sub { package Types::Standard; no warnings; use strict; return $Type::Tiny::parameterize_type->type_default if @_ < 2; return undef;},"uniq" => 22}, 'Type::Tiny' );$v->{"coercion"}{"type_constraint"} = $v;$v->{"compiled_type_constraint"} = $v->{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"};$v->{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parent"};$v->{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"complementary_type"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parent"}{"complementary_type"};$v->{"parent"}{"parent"}{"complementary_type"}{"compiled_type_constraint"} = $v->{"parent"}{"parent"}{"complementary_type"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"complementary_type"}{"complementary_type"} = $v->{"parent"}{"parent"};$v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parent"}{"complementary_type"}{"parent"};$v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"} = $v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"};$v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"constraint"} = $v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"constraint"};$v->{"parent"}{"parent"}{"parent"} = $v->{"parent"}{"parent"}{"complementary_type"}{"parent"}; \$v}->get_message($context)) |
976 |
15 |
991 |
| Ref::Util::XS::is_plain_arrayref($selections) or Function::Parameters::_croak('In method _collect_fields: parameter 2 ($selections): ' . ${my $v = bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; Ref::Util::XS::is_plain_arrayref($_[0]) or _failed_check(21, 'ArrayRef', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_ArrayRef","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"coercion_generator" => sub { package Types::Standard::ArrayRef; no warnings; use strict; my($parent, $child, $param) = @_; return unless $param->has_coercion; my $coercable_item = $param->coercion->_source_type_union; my $C = 'Type::Coercion'->new('type_constraint', $child); if ($param->coercion->can_be_inlined and $coercable_item->can_be_inlined) { $C->add_type_coercions($parent, &Types::Standard::Stringable(sub { my @code; push @code, 'do { my ($orig, $return_orig, @new) = ($_, 0);'; push @code, 'for (@$orig) {'; push @code, sprintf('++$return_orig && last unless (%s);', $coercable_item->inline_check('$_')); push @code, sprintf('push @new, (%s);', $param->coercion->inline_coercion('$_')); push @code, '}'; push @code, '$return_orig ? $orig : \\@new'; push @code, '}'; join $", @code; } )); } else { $C->add_type_coercions($parent, sub { my $value = @_ ? $_[0] : $_; my @new; foreach my $item (@$value) { return $value unless $coercable_item->check($item); push @new, $param->coerce($item); } return \@new; } ); } return $C;},"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; ref $_ eq 'ARRAY';},"constraint_generator" => sub { package Types::Standard::ArrayRef; no warnings; use strict; return &Types::Standard::ArrayRef() unless @_; Type::Tiny::check_parameter_count_for_parameterized_type('Types::Standard', 'ArrayRef', \@_, 3); my $param = shift(); Types::TypeTiny::is_TypeTiny($param) or _croak "Parameter to ArrayRef[`a] expected to be a type constraint; got $param"; my($min, $max) = (0, -1); $min = Types::Standard::assert_Int(shift()) if @_; $max = Types::Standard::assert_Int(shift()) if @_; my $param_compiled_check = $param->compiled_check; my $xsub; if ($min == 0 and $max == -1) { my $paramname = Type::Tiny::XS::is_known($param_compiled_check); $xsub = Type::Tiny::XS::get_coderef_for("ArrayRef[$paramname]") if $paramname; } elsif (&Type::Tiny::_USE_MOUSE() and $param->_has_xsub and $min == 0 and $max == -1) { require Mouse::Util::TypeConstraints; my $maker = 'Mouse::Util::TypeConstraints'->can('_parameterize_ArrayRef_for'); $xsub = &$maker($param) if $maker; } return sub { my $array = shift(); ($param->check($_) or return) foreach (@$array); return !0; } , $xsub if $min == 0 and $max == -1; return sub { my $array = shift(); return if @$array < $min; ($param->check($_) or return) foreach (@$array); return !0; } if $max == -1; return sub { my $array = shift(); return if @$array > $max; ($param->check($_) or return) foreach (@$array); return !0; } if $min == 0; return sub { my $array = shift(); return if @$array < $min; return if @$array > $max; ($param->check($_) or return) foreach (@$array); return !0; } ;},"deep_explanation" => sub { package Types::Standard::ArrayRef; no warnings; use strict; my($type, $value, $varname) = @_; my $param = $type->parameters->[0]; my($min, $max) = (0, -1); $min = $type->parameters->[1] if @{$type->parameters;} > 1; $max = $type->parameters->[2] if @{$type->parameters;} > 2; if ($min != 0 and @$value < $min) { return [sprintf('"%s" constrains array length at least %s', $type, $min), sprintf('@{%s} is %d', $varname, scalar @$value)]; } if ($max > 0 and @$value > $max) { return [sprintf('"%s" constrains array length at most %d', $type, $max), sprintf('@{%s} is %d', $varname, scalar @$value)]; } foreach my $i (0 .. $value->$#*) { my $item = $value->[$i]; next if $param->check($item); return [sprintf('"%s" constrains each value in the array with "%s"', $type, $param), @{$param->validate_explain($item, sprintf('%s->[%d]', $varname, $i));}]; } return;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 523,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "ArrayRef","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard::ArrayRef; no warnings; use strict; my $param = shift(); my($min, $max) = (0, -1); $min = shift() if @_; $max = shift() if @_; my $param_compiled_check = $param->compiled_check; my $xsubname; if ($min == 0 and $max == -1) { my $paramname = Type::Tiny::XS::is_known($param_compiled_check); $xsubname = Type::Tiny::XS::get_subname_for("ArrayRef[$paramname]"); } return unless $param->can_be_inlined; return sub { my $v = $_[1]; return "$xsubname($v)" if $xsubname and not $Type::Tiny::AvoidCallbacks; my $p = &Types::Standard::ArrayRef()->inline_check($v); if ($min != 0) { $p .= sprintf(' and @{%s} >= %d', $v, $min); } if ($max > 0) { $p .= sprintf(' and @{%s} <= %d', $v, $max); } my $param_check = $param->inline_check('$i'); return $p if $param->{'uniq'} eq &Types::Standard::Any()->{'uniq'}; "$p and do { " . 'my $ok = 1; ' . "for my \$i (\@{$v}) { " . "(\$ok = 0, last) unless $param_check " . '}; ' . '$ok ' . '}'; } ;},"inlined" => sub { package Types::Standard; no warnings; use strict; !$Type::Tiny::AvoidCallbacks ? "Ref::Util::XS::is_plain_arrayref($_[1])" : "ref($_[1]) eq 'ARRAY'";},"library" => "Types::Standard","name" => "ArrayRef","name_generator" => sub { package Type::Tiny; use warnings; use strict; defined $_ and s/[\x00-\x1F]//gms foreach (my($s, @a) = @_); sprintf '%s[%s]', $s, join(',', map((!defined($_) ? 'undef' : (!ref($_) && /\W/ ? B::perlstring($_) : $_)), @a));},"parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; not ref $_[0] and _failed_check(16, 'Ref', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Ref","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; ref $_;},"constraint_generator" => sub { package Types::Standard; no warnings; use strict; return $meta->get_type('Ref') unless @_; Type::Tiny::check_parameter_count_for_parameterized_type('Types::Standard', 'Ref', \@_, 1); my $reftype = shift(); $reftype =~ /^(SCALAR|ARRAY|HASH|CODE|REF|GLOB|LVALUE|FORMAT|IO|VSTRING|REGEXP|Regexp)$/i or _croak "Parameter to Ref[`a] expected to be a Perl ref type; got $reftype"; $reftype = "$reftype"; return sub { ref $_[0] and builtin::reftype($_[0]) eq $reftype; } ;},"deep_explanation" => sub { package Types::Standard; no warnings; use strict; require B; my($type, $value, $varname) = @_; my $param = $type->parameters->[0]; return if $type->check($value); my $reftype = builtin::reftype($value); return [sprintf('"%s" constrains reftype(%s) to be equal to %s', $type, $varname, B::perlstring($param)), sprintf('reftype(%s) is %s', $varname, defined $reftype ? B::perlstring($reftype) : 'undef')];},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 438,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Ref","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard; no warnings; use strict; my $reftype = shift(); return sub { my $v = $_[1]; &$maybe_load_modules('Scalar::Util', "ref($v) and Scalar::Util::reftype($v) eq q($reftype)"); } ;},"inlined" => sub { package Types::Standard; no warnings; use strict; "!!ref($_[1])";},"library" => "Types::Standard","name" => "Ref","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; defined $_[0] or _failed_check(7, 'Defined', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Defined","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complementary_type" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; defined $_[0] and _failed_check(6, 'Undef', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Undef","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complementary_type" => {},"constraint" => sub { package Types::Standard; no warnings; use strict; not defined $_;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 254,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Undef","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; "!defined($_[1])";},"library" => "Types::Standard","name" => "Undef","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; '???'; $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Item","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Type::Tiny; use warnings; use strict; !0;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 226,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Item","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; '!!1';},"library" => "Types::Standard","name" => "Item","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Sub::Defer; use warnings; use strict; $undeferred ||= undefer_sub($deferred_info->[4]); goto \&$undeferred;},"_overload_coderef_no_rebuild" => 1,"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => do{my $o},"display_name" => "to_Any","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complement_name" => "None","constraint" => do{my $o},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 220,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Any","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; '!!1';},"library" => "Types::Standard","name" => "Any","type_default" => sub { package Types::Standard; no warnings; use strict; return undef;},"uniq" => 1}, 'Type::Tiny' ),"uniq" => 2}, 'Type::Tiny' ),"type_default" => sub { package Types::Standard; no warnings; use strict; return undef;},"uniq" => 6}, 'Type::Tiny' ),"constraint" => sub { package Types::Standard; no warnings; use strict; defined $_;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 262,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Defined","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; "defined($_[1])";},"library" => "Types::Standard","name" => "Defined","parent" => {},"uniq" => 7}, 'Type::Tiny' ),"uniq" => 16}, 'Type::Tiny' ),"type_default" => sub { package Types::Standard; no warnings; use strict; return [];},"type_default_generator" => sub { package Types::Standard; no warnings; use strict; return $Type::Tiny::parameterize_type->type_default if @_ < 2; return undef;},"uniq" => 21}, 'Type::Tiny' );$v->{"coercion"}{"type_constraint"} = $v;$v->{"compiled_type_constraint"} = $v->{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"};$v->{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parent"};$v->{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"complementary_type"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parent"}{"complementary_type"};$v->{"parent"}{"parent"}{"complementary_type"}{"compiled_type_constraint"} = $v->{"parent"}{"parent"}{"complementary_type"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"complementary_type"}{"complementary_type"} = $v->{"parent"}{"parent"};$v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parent"}{"complementary_type"}{"parent"};$v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"} = $v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"};$v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"constraint"} = $v->{"parent"}{"parent"}{"complementary_type"}{"parent"}{"constraint"};$v->{"parent"}{"parent"}{"parent"} = $v->{"parent"}{"parent"}{"complementary_type"}{"parent"}; \$v}->get_message($selections)) |
968 |
154 |
1122 |
| do {
package Type::Tiny;
Ref::Util::XS::is_plain_arrayref($fields_got) and @{$fields_got;} == 2 and do {
Ref::Util::XS::is_plain_arrayref($fields_got->[0]) and do {
my $ok = 1;
foreach my $i (@{$$fields_got[0];}) {
$ok = 0, last unless defined $i and not ref $i and not !($i =~ qr/(?^u:^[_a-zA-Z][_a-zA-Z0-9]*$)/u);
};
$ok
}
} and do {
Ref::Util::XS::is_plain_hashref($fields_got->[1]) and do {
my $ok = 1;
foreach my $v (values %{$$fields_got[1];}) {
$ok = 0, last unless Type::Tiny::XS::AUTO::TC1($v);
};
foreach my $k (keys %{$$fields_got[1];}) {
$ok = 0, last unless defined $k and not ref $k and not !($k =~ qr/(?^u:^[_a-zA-Z][_a-zA-Z0-9]*$)/u);
};
$ok
}
}
} or Function::Parameters::_croak('In method _collect_fields: parameter 3 ($fields_got): ' . ${my $v = bless( {"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; do { Ref::Util::XS::is_plain_arrayref($_[0]) and @{$_[0];} == 2 and do { Ref::Util::XS::is_plain_arrayref($_[0][0]) and do { my $ok = 1; foreach my $i (@{$_[0][0];}) { $ok = 0, last unless defined $i and not ref $i and not !($i =~ qr/(?^u:^[_a-zA-Z][_a-zA-Z0-9]*$)/); } $ok } } and do { Ref::Util::XS::is_plain_hashref($_[0][1]) and do { my $ok = 1; foreach my $v (values %{$_[0][1];}) { $ok = 0, last unless Type::Tiny::XS::AUTO::TC1($v); } foreach my $k (keys %{$_[0][1];}) { $ok = 0, last unless defined $k and not ref $k and not !($k =~ qr/(?^u:^[_a-zA-Z][_a-zA-Z0-9]*$)/); } $ok } } } or _failed_check(47, 'FieldsGot', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"compiled_type_constraint" => sub ($) { package Eval::TypeTiny::Sandbox; use strict; do { package Type::Tiny; Ref::Util::XS::is_plain_arrayref($_[0]) and @{$_[0];} == 2 and do { Ref::Util::XS::is_plain_arrayref($_[0][0]) and do { my $ok = 1; foreach my $i (@{$_[0][0];}) { $ok = 0, last unless defined $i and not ref $i and not !($i =~ qr/(?^u:^[_a-zA-Z][_a-zA-Z0-9]*$)/); } $ok } } and do { Ref::Util::XS::is_plain_hashref($_[0][1]) and do { my $ok = 1; foreach my $v (values %{$_[0][1];}) { $ok = 0, last unless Type::Tiny::XS::AUTO::TC1($v); } foreach my $k (keys %{$_[0][1];}) { $ok = 0, last unless defined $k and not ref $k and not !($k =~ qr/(?^u:^[_a-zA-Z][_a-zA-Z0-9]*$)/); } $ok } } };},"constraint" => sub { package Type::Tiny; use warnings; use strict; !0;},"definition_context" => {"file" => "/home/cpancover/.cpan/build/GraphQL-0.54-0/blib/lib/GraphQL/Type/Library.pm","line" => 92,"package" => "GraphQL::Type::Library"},"deprecated" => !!0,"display_name" => "FieldsGot","exception_class" => "Error::TypeTiny::Assertion","library" => "GraphQL::Type::Library","name" => "FieldsGot","parent" => bless( {"_build_coercion" => sub { package Type::Tiny; use warnings; use strict; my $coercion = shift(); my $built = $self->coercion_generator->($self, $P, @args); $coercion->add_type_coercions(@{$built->type_coercion_map;}) if $built; $coercion->freeze;},"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard::Tuple; no warnings; use strict; my $value = $_[0]; if ($#constraints < $value->$#*) { return !1 unless $slurpy; my $tmp; if ($slurp_hash) { ($value->$#* - $#constraints + 1) % 2 or return; $tmp = {@$value[$#constraints + 1 .. $value->$#*]}; $slurpy->check($tmp) or return; } elsif (not $slurp_any) { $tmp = [@$value[$#constraints + 1 .. $value->$#*]]; $slurpy->check($tmp) or return; } } foreach my $i (0 .. $#constraints) { $i > $value->$#* and return !!$is_optional[$i]; $constraints[$i]->check($value->[$i]) or return !1; } return !0;},"definition_context" => {"file" => "/home/cpancover/.cpan/build/GraphQL-0.54-0/blib/lib/GraphQL/Type/Library.pm","line" => 92,"package" => "GraphQL::Type::Library"},"deprecated" => !!0,"display_name" => "Tuple[ArrayRef[StrNameValid],Map[StrNameValid,ArrayRef[HashRef]]]","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard::Tuple; no warnings; use strict; my $v = $_[1]; return "$xsubname($v)" if $xsubname and not $Type::Tiny::AvoidCallbacks; join ' and ', &Types::Standard::ArrayRef()->inline_check($v), scalar @constraints == $min && !$slurpy ? "\@{$v} == $min" : sprintf("(\@{$v} == $min or (\@{$v} > $min and \@{$v} <= ${\(1 + $#constraints);}) or (\@{$v} > ${\(1 + $#constraints);} and %s))", $slurpy_any ? '!!1' : ($slurpy ? sprintf($tmpl, $v, $#constraints + 1, $v, $slurpy->inline_check('$tmp')) : sprintf("\@{$v} <= %d", scalar @constraints))), map({my $inline = $constraints[$_]->inline_check("$v->[$_]"); $inline eq '(!!1)' ? () : $is_optional[$_] ? sprintf('(@{%s} <= %d or %s)', $v, $_, $inline) : $inline;} 0 .. $#constraints);},"name" => "__ANON__","parameters" => [bless( {"_build_coercion" => sub { package Type::Tiny; use warnings; use strict; my $coercion = shift(); my $built = $self->coercion_generator->($self, $P, @args); $coercion->add_type_coercions(@{$built->type_coercion_map;}) if $built; $coercion->freeze;},"compiled_type_constraint" => sub ($) { package Eval::TypeTiny::Sandbox; use strict; do { package Type::Tiny; Ref::Util::XS::is_plain_arrayref($_[0]) and do { my $ok = 1; foreach my $i (@{$_[0];}) { $ok = 0, last unless defined $i and not ref $i and not !($i =~ qr/(?^u:^[_a-zA-Z][_a-zA-Z0-9]*$)/); } $ok } };},"constraint" => sub { package Types::Standard::ArrayRef; no warnings; use strict; my $array = shift(); ($param->check($_) or return) foreach (@$array); return !0;},"definition_context" => {"file" => "/home/cpancover/.cpan/build/GraphQL-0.54-0/blib/lib/GraphQL/Type/Library.pm","line" => 92,"package" => "GraphQL::Type::Library"},"deprecated" => !!0,"display_name" => "ArrayRef[StrNameValid]","inlined" => sub { package Types::Standard::ArrayRef; no warnings; use strict; my $v = $_[1]; return "$xsubname($v)" if $xsubname and not $Type::Tiny::AvoidCallbacks; my $p = &Types::Standard::ArrayRef()->inline_check($v); if ($min != 0) { $p .= sprintf(' and @{%s} >= %d', $v, $min); } if ($max > 0) { $p .= sprintf(' and @{%s} <= %d', $v, $max); } my $param_check = $param->inline_check('$i'); return $p if $param->{'uniq'} eq &Types::Standard::Any()->{'uniq'}; "$p and do { " . 'my $ok = 1; ' . "for my \$i (\@{$v}) { " . "(\$ok = 0, last) unless $param_check " . '}; ' . '$ok ' . '}';},"name" => "__ANON__","parameters" => [bless( {"_overload_coderef" => sub { package Sub::Defer; use warnings; use strict; $undeferred ||= undefer_sub($deferred_info->[4]); goto \&$undeferred;},"_overload_coderef_no_rebuild" => 1,"_overrides_assert_return" => !!0,"compiled_type_constraint" => sub ($) { package Eval::TypeTiny::Sandbox; use strict; defined $_[0] and not ref $_[0] and not !($_[0] =~ qr/(?^u:^[_a-zA-Z][_a-zA-Z0-9]*$)/);},"constraint" => do{my $o},"definition_context" => {"file" => "/home/cpancover/.cpan/build/GraphQL-0.54-0/blib/lib/GraphQL/Type/Library.pm","line" => 42,"package" => "GraphQL::Type::Library"},"deprecated" => !!0,"display_name" => "StrNameValid","exception_class" => "Error::TypeTiny::Assertion","library" => "GraphQL::Type::Library","name" => "StrNameValid","parent" => bless( {"coercion" => bless( {"_compiled_type_constraint_check" => do{my $o},"frozen" => 1,"name" => "__ANON__","type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard::StrMatch; no warnings; use strict; my $value = shift(); defined $value and not ref $value and not !($value =~ /$regexp/);},"definition_context" => {"file" => "/home/cpancover/.cpan/build/GraphQL-0.54-0/blib/lib/GraphQL/Type/Library.pm","line" => 42,"package" => "GraphQL::Type::Library"},"deprecated" => !!0,"display_name" => "StrMatch[(?^u:^[_a-zA-Z][_a-zA-Z0-9]*\$)]","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard::StrMatch; no warnings; use strict; my $v = $_[1]; if ($Type::Tiny::AvoidCallbacks and $serialized_re =~ /Types::Standard::StrMatch::expressions/) { require Carp; Carp::carp('Cannot serialize regexp without callbacks; serializing using callbacks'); } "defined($v) and !ref($v) and !!( $v =~ $serialized_re )";},"name" => "__ANON__","parameters" => [qr/^[_a-zA-Z][_a-zA-Z0-9]*$/u],"parent" => bless( {"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; Type::Tiny::XS::Str($_[0]) or _failed_check(33, 'StrMatch', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_StrMatch","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => do{my $o},"constraint_generator" => sub { package Types::Standard::StrMatch; no warnings; use strict; return 'Types::Standard'->meta->get_type('StrMatch') unless @_; Type::Tiny::check_parameter_count_for_parameterized_type('Types::Standard', 'StrMatch', \@_, 2, 1); my($regexp, $checker) = @_; &Types::Standard::is_RegexpRef($regexp) or _croak "First parameter to StrMatch[`a] expected to be a Regexp; got $regexp"; if (@_ > 1) { $checker = Types::TypeTiny::to_TypeTiny($checker); Types::TypeTiny::is_TypeTiny($checker) or _croak "Second parameter to StrMatch[`a] expected to be a type constraint; got $checker"; } $checker ? sub { my $value = shift(); return unless defined $value; return if ref $value; my(@m) = $value =~ /$regexp/; $checker->check(\@m); } : sub { my $value = shift(); defined $value and not ref $value and not !($value =~ /$regexp/); } ;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 902,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "StrMatch","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard::StrMatch; no warnings; use strict; require B; my($regexp, $checker) = @_; my $serialized_re = $regexp->$serialize_regexp or return; if ($checker) { return unless $checker->can_be_inlined; return sub { my $v = $_[1]; if ($Type::Tiny::AvoidCallbacks and $serialized_re =~ /Types::Standard::StrMatch::expressions/) { require Carp; Carp::carp('Cannot serialize regexp without callbacks; serializing using callbacks'); } sprintf "defined($v) and !ref($v) and do { my \$m = [$v =~ %s]; %s }", $serialized_re, $checker->inline_check('$m'); } ; } else { my $regexp_string = "$regexp"; if ($regexp_string =~ /\A\(\?\^u?:\\A(\.+)\)\z/) { my $length = length $1; return sub { "defined($_) and !ref($_) and length($_)>=$length"; } ; } if ($regexp_string =~ /\A\(\?\^u?:\\A(\.+)\\z\)\z/) { my $length = length $1; return sub { "defined($_) and !ref($_) and length($_)==$length"; } ; } return sub { my $v = $_[1]; if ($Type::Tiny::AvoidCallbacks and $serialized_re =~ /Types::Standard::StrMatch::expressions/) { require Carp; Carp::carp('Cannot serialize regexp without callbacks; serializing using callbacks'); } "defined($v) and !ref($v) and !!( $v =~ $serialized_re )"; } ; }},"library" => "Types::Standard","name" => "StrMatch","name_generator" => sub { package Type::Tiny; use warnings; use strict; defined $_ and s/[\x00-\x1F]//gms foreach (my($s, @a) = @_); sprintf '%s[%s]', $s, join(',', map((!defined($_) ? 'undef' : (!ref($_) && /\W/ ? B::perlstring($_) : $_)), @a));},"parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Sub::Defer; use warnings; use strict; $undeferred ||= undefer_sub($deferred_info->[4]); goto \&$undeferred;},"_overload_coderef_no_rebuild" => 1,"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => do{my $o},"display_name" => "to_Str","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; ref \$_ eq 'SCALAR' or ref \(my $val = $_) eq 'SCALAR';},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 291,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Str","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; use warnings; use strict; $Type::Tiny::AvoidCallbacks ? goto $orig_inlined : "$xsubname($_[1])";},"library" => "Types::Standard","name" => "Str","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; defined $_[0] and not ref $_[0] or _failed_check(8, 'Value', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Value","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; not ref $_;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 276,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Value","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; "defined($_[1]) and not ref($_[1])";},"library" => "Types::Standard","name" => "Value","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; defined $_[0] or _failed_check(7, 'Defined', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Defined","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complementary_type" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; defined $_[0] and _failed_check(6, 'Undef', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Undef","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complementary_type" => {},"constraint" => sub { package Types::Standard; no warnings; use strict; not defined $_;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 254,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Undef","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; "!defined($_[1])";},"library" => "Types::Standard","name" => "Undef","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; '???'; $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Item","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => do{my $o},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 226,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Item","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; '!!1';},"library" => "Types::Standard","name" => "Item","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Sub::Defer; use warnings; use strict; $undeferred ||= undefer_sub($deferred_info->[4]); goto \&$undeferred;},"_overload_coderef_no_rebuild" => 1,"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => do{my $o},"display_name" => "to_Any","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complement_name" => "None","constraint" => do{my $o},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 220,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Any","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; '!!1';},"library" => "Types::Standard","name" => "Any","type_default" => sub { package Types::Standard; no warnings; use strict; return undef;},"uniq" => 1}, 'Type::Tiny' ),"uniq" => 2}, 'Type::Tiny' ),"type_default" => sub { package Types::Standard; no warnings; use strict; return undef;},"uniq" => 6}, 'Type::Tiny' ),"constraint" => sub { package Types::Standard; no warnings; use strict; defined $_;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 262,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Defined","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; "defined($_[1])";},"library" => "Types::Standard","name" => "Defined","parent" => {},"uniq" => 7}, 'Type::Tiny' ),"uniq" => 8}, 'Type::Tiny' ),"sorter" => sub { package Types::Standard; no warnings; use strict; $_[0] cmp $_[1];},"type_default" => sub { package Types::Standard; no warnings; use strict; return '';},"uniq" => 9}, 'Type::Tiny' ),"uniq" => 33}, 'Type::Tiny' ),"uniq" => 40}, 'Type::Tiny' ),"uniq" => 41}, 'Type::Tiny' )],"parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; Ref::Util::XS::is_plain_arrayref($_[0]) or _failed_check(21, 'ArrayRef', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_ArrayRef","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"coercion_generator" => sub { package Types::Standard::ArrayRef; no warnings; use strict; my($parent, $child, $param) = @_; return unless $param->has_coercion; my $coercable_item = $param->coercion->_source_type_union; my $C = 'Type::Coercion'->new('type_constraint', $child); if ($param->coercion->can_be_inlined and $coercable_item->can_be_inlined) { $C->add_type_coercions($parent, &Types::Standard::Stringable(sub { my @code; push @code, 'do { my ($orig, $return_orig, @new) = ($_, 0);'; push @code, 'for (@$orig) {'; push @code, sprintf('++$return_orig && last unless (%s);', $coercable_item->inline_check('$_')); push @code, sprintf('push @new, (%s);', $param->coercion->inline_coercion('$_')); push @code, '}'; push @code, '$return_orig ? $orig : \\@new'; push @code, '}'; join $", @code; } )); } else { $C->add_type_coercions($parent, sub { my $value = @_ ? $_[0] : $_; my @new; foreach my $item (@$value) { return $value unless $coercable_item->check($item); push @new, $param->coerce($item); } return \@new; } ); } return $C;},"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; ref $_ eq 'ARRAY';},"constraint_generator" => sub { package Types::Standard::ArrayRef; no warnings; use strict; return &Types::Standard::ArrayRef() unless @_; Type::Tiny::check_parameter_count_for_parameterized_type('Types::Standard', 'ArrayRef', \@_, 3); my $param = shift(); Types::TypeTiny::is_TypeTiny($param) or _croak "Parameter to ArrayRef[`a] expected to be a type constraint; got $param"; my($min, $max) = (0, -1); $min = Types::Standard::assert_Int(shift()) if @_; $max = Types::Standard::assert_Int(shift()) if @_; my $param_compiled_check = $param->compiled_check; my $xsub; if ($min == 0 and $max == -1) { my $paramname = Type::Tiny::XS::is_known($param_compiled_check); $xsub = Type::Tiny::XS::get_coderef_for("ArrayRef[$paramname]") if $paramname; } elsif (&Type::Tiny::_USE_MOUSE() and $param->_has_xsub and $min == 0 and $max == -1) { require Mouse::Util::TypeConstraints; my $maker = 'Mouse::Util::TypeConstraints'->can('_parameterize_ArrayRef_for'); $xsub = &$maker($param) if $maker; } return sub { my $array = shift(); ($param->check($_) or return) foreach (@$array); return !0; } , $xsub if $min == 0 and $max == -1; return sub { my $array = shift(); return if @$array < $min; ($param->check($_) or return) foreach (@$array); return !0; } if $max == -1; return sub { my $array = shift(); return if @$array > $max; ($param->check($_) or return) foreach (@$array); return !0; } if $min == 0; return sub { my $array = shift(); return if @$array < $min; return if @$array > $max; ($param->check($_) or return) foreach (@$array); return !0; } ;},"deep_explanation" => sub { package Types::Standard::ArrayRef; no warnings; use strict; my($type, $value, $varname) = @_; my $param = $type->parameters->[0]; my($min, $max) = (0, -1); $min = $type->parameters->[1] if @{$type->parameters;} > 1; $max = $type->parameters->[2] if @{$type->parameters;} > 2; if ($min != 0 and @$value < $min) { return [sprintf('"%s" constrains array length at least %s', $type, $min), sprintf('@{%s} is %d', $varname, scalar @$value)]; } if ($max > 0 and @$value > $max) { return [sprintf('"%s" constrains array length at most %d', $type, $max), sprintf('@{%s} is %d', $varname, scalar @$value)]; } foreach my $i (0 .. $value->$#*) { my $item = $value->[$i]; next if $param->check($item); return [sprintf('"%s" constrains each value in the array with "%s"', $type, $param), @{$param->validate_explain($item, sprintf('%s->[%d]', $varname, $i));}]; } return;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 523,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "ArrayRef","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard::ArrayRef; no warnings; use strict; my $param = shift(); my($min, $max) = (0, -1); $min = shift() if @_; $max = shift() if @_; my $param_compiled_check = $param->compiled_check; my $xsubname; if ($min == 0 and $max == -1) { my $paramname = Type::Tiny::XS::is_known($param_compiled_check); $xsubname = Type::Tiny::XS::get_subname_for("ArrayRef[$paramname]"); } return unless $param->can_be_inlined; return sub { my $v = $_[1]; return "$xsubname($v)" if $xsubname and not $Type::Tiny::AvoidCallbacks; my $p = &Types::Standard::ArrayRef()->inline_check($v); if ($min != 0) { $p .= sprintf(' and @{%s} >= %d', $v, $min); } if ($max > 0) { $p .= sprintf(' and @{%s} <= %d', $v, $max); } my $param_check = $param->inline_check('$i'); return $p if $param->{'uniq'} eq &Types::Standard::Any()->{'uniq'}; "$p and do { " . 'my $ok = 1; ' . "for my \$i (\@{$v}) { " . "(\$ok = 0, last) unless $param_check " . '}; ' . '$ok ' . '}'; } ;},"inlined" => sub { package Types::Standard; no warnings; use strict; !$Type::Tiny::AvoidCallbacks ? "Ref::Util::XS::is_plain_arrayref($_[1])" : "ref($_[1]) eq 'ARRAY'";},"library" => "Types::Standard","name" => "ArrayRef","name_generator" => sub { package Type::Tiny; use warnings; use strict; defined $_ and s/[\x00-\x1F]//gms foreach (my($s, @a) = @_); sprintf '%s[%s]', $s, join(',', map((!defined($_) ? 'undef' : (!ref($_) && /\W/ ? B::perlstring($_) : $_)), @a));},"parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; not ref $_[0] and _failed_check(16, 'Ref', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Ref","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; ref $_;},"constraint_generator" => sub { package Types::Standard; no warnings; use strict; return $meta->get_type('Ref') unless @_; Type::Tiny::check_parameter_count_for_parameterized_type('Types::Standard', 'Ref', \@_, 1); my $reftype = shift(); $reftype =~ /^(SCALAR|ARRAY|HASH|CODE|REF|GLOB|LVALUE|FORMAT|IO|VSTRING|REGEXP|Regexp)$/i or _croak "Parameter to Ref[`a] expected to be a Perl ref type; got $reftype"; $reftype = "$reftype"; return sub { ref $_[0] and builtin::reftype($_[0]) eq $reftype; } ;},"deep_explanation" => sub { package Types::Standard; no warnings; use strict; require B; my($type, $value, $varname) = @_; my $param = $type->parameters->[0]; return if $type->check($value); my $reftype = builtin::reftype($value); return [sprintf('"%s" constrains reftype(%s) to be equal to %s', $type, $varname, B::perlstring($param)), sprintf('reftype(%s) is %s', $varname, defined $reftype ? B::perlstring($reftype) : 'undef')];},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 438,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Ref","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard; no warnings; use strict; my $reftype = shift(); return sub { my $v = $_[1]; &$maybe_load_modules('Scalar::Util', "ref($v) and Scalar::Util::reftype($v) eq q($reftype)"); } ;},"inlined" => sub { package Types::Standard; no warnings; use strict; "!!ref($_[1])";},"library" => "Types::Standard","name" => "Ref","parent" => {},"uniq" => 16}, 'Type::Tiny' ),"type_default" => sub { package Types::Standard; no warnings; use strict; return [];},"type_default_generator" => sub { package Types::Standard; no warnings; use strict; return $Type::Tiny::parameterize_type->type_default if @_ < 2; return undef;},"uniq" => 21}, 'Type::Tiny' ),"type_default" => do{my $o},"uniq" => 43}, 'Type::Tiny' ),bless( {"_build_coercion" => sub { package Type::Tiny; use warnings; use strict; my $coercion = shift(); my $built = $self->coercion_generator->($self, $P, @args); $coercion->add_type_coercions(@{$built->type_coercion_map;}) if $built; $coercion->freeze;},"compiled_type_constraint" => sub ($) { package Eval::TypeTiny::Sandbox; use strict; do { package Type::Tiny; Ref::Util::XS::is_plain_hashref($_[0]) and do { my $ok = 1; foreach my $v (values %{$_[0];}) { $ok = 0, last unless Type::Tiny::XS::AUTO::TC1($v); } foreach my $k (keys %{$_[0];}) { $ok = 0, last unless defined $k and not ref $k and not !($k =~ qr/(?^u:^[_a-zA-Z][_a-zA-Z0-9]*$)/); } $ok } };},"constraint" => sub { package Types::Standard::Map; no warnings; use strict; my $hash = shift(); ($keys->check($_) or return) foreach (keys %$hash); ($values->check($_) or return) foreach (values %$hash); return !0;},"definition_context" => {"file" => "/home/cpancover/.cpan/build/GraphQL-0.54-0/blib/lib/GraphQL/Type/Library.pm","line" => 92,"package" => "GraphQL::Type::Library"},"deprecated" => !!0,"display_name" => "Map[StrNameValid,ArrayRef[HashRef]]","inlined" => sub { package Types::Standard::Map; no warnings; use strict; my $h = $_[1]; return "$xsubname($h)" if $xsubname and not $Type::Tiny::AvoidCallbacks; my $p = &Types::Standard::HashRef()->inline_check($h); my $k_check = $k->inline_check('$k'); my $v_check = $v->inline_check('$v'); "$p and do { " . 'my $ok = 1; ' . "for my \$v (values %{$h}) { " . "(\$ok = 0, last) unless $v_check " . '}; ' . "for my \$k (keys %{$h}) { " . "(\$ok = 0, last) unless $k_check " . '}; ' . '$ok ' . '}';},"name" => "__ANON__","parameters" => [{},bless( {"_build_coercion" => sub { package Type::Tiny; use warnings; use strict; my $coercion = shift(); my $built = $self->coercion_generator->($self, $P, @args); $coercion->add_type_coercions(@{$built->type_coercion_map;}) if $built; $coercion->freeze;},"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard::ArrayRef; no warnings; use strict; my $array = shift(); ($param->check($_) or return) foreach (@$array); return !0;},"definition_context" => {"file" => "/home/cpancover/.cpan/build/GraphQL-0.54-0/blib/lib/GraphQL/Type/Library.pm","line" => 92,"package" => "GraphQL::Type::Library"},"deprecated" => !!0,"display_name" => "ArrayRef[HashRef]","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard::ArrayRef; no warnings; use strict; my $v = $_[1]; return "$xsubname($v)" if $xsubname and not $Type::Tiny::AvoidCallbacks; my $p = &Types::Standard::ArrayRef()->inline_check($v); if ($min != 0) { $p .= sprintf(' and @{%s} >= %d', $v, $min); } if ($max > 0) { $p .= sprintf(' and @{%s} <= %d', $v, $max); } my $param_check = $param->inline_check('$i'); return $p if $param->{'uniq'} eq &Types::Standard::Any()->{'uniq'}; "$p and do { " . 'my $ok = 1; ' . "for my \$i (\@{$v}) { " . "(\$ok = 0, last) unless $param_check " . '}; ' . '$ok ' . '}';},"name" => "__ANON__","parameters" => [bless( {"_is_core" => 1,"_overload_coderef" => sub { package Sub::Defer; use warnings; use strict; $undeferred ||= undefer_sub($deferred_info->[4]); goto \&$undeferred;},"_overload_coderef_no_rebuild" => 1,"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_HashRef","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"coercion_generator" => sub { package Types::Standard::HashRef; no warnings; use strict; my($parent, $child, $param) = @_; return unless $param->has_coercion; my $coercable_item = $param->coercion->_source_type_union; my $C = 'Type::Coercion'->new('type_constraint', $child); if ($param->coercion->can_be_inlined and $coercable_item->can_be_inlined) { $C->add_type_coercions($parent, &Types::Standard::Stringable(sub { my @code; push @code, 'do { my ($orig, $return_orig, %new) = ($_, 0);'; push @code, 'for (keys %$orig) {'; push @code, sprintf('$return_orig++ && last unless (%s);', $coercable_item->inline_check('$orig->{$_}')); push @code, sprintf('$new{$_} = (%s);', $param->coercion->inline_coercion('$orig->{$_}')); push @code, '}'; push @code, '$return_orig ? $orig : \\%new'; push @code, '}'; join $", @code; } )); } else { $C->add_type_coercions($parent, sub { my $value = @_ ? $_[0] : $_; my %new; foreach my $k (keys %$value) { return $value unless $coercable_item->check($value->{$k}); $new{$k} = $param->coerce($value->{$k}); } return \%new; } ); } return $C;},"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; ref $_ eq 'HASH';},"constraint_generator" => sub { package Types::Standard::HashRef; no warnings; use strict; return &Types::Standard::HashRef() unless @_; require Error::TypeTiny::WrongNumberOfParameters; Type::Tiny::check_parameter_count_for_parameterized_type('Types::Standard', 'HashRef', \@_, 1); my $param = shift(); Types::TypeTiny::is_TypeTiny($param) or _croak "Parameter to HashRef[`a] expected to be a type constraint; got $param"; my $param_compiled_check = $param->compiled_check; my $xsub; do { my $paramname = Type::Tiny::XS::is_known($param_compiled_check); $xsub = Type::Tiny::XS::get_coderef_for("HashRef[$paramname]") if $paramname }; return sub { my $hash = shift(); ($param->check($_) or return) foreach (values %$hash); return !0; } , $xsub;},"deep_explanation" => sub { package Types::Standard::HashRef; no warnings; use strict; require B; my($type, $value, $varname) = @_; my $param = $type->parameters->[0]; foreach my $k (sort keys %$value) { my $item = $value->{$k}; next if $param->check($item); return [sprintf('"%s" constrains each value in the hash with "%s"', $type, $param), @{$param->validate_explain($item, sprintf('%s->{%s}', $varname, B::perlstring($k)));}]; } return;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 544,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "HashRef","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard::HashRef; no warnings; use strict; my $param = shift(); my $compiled = $param->compiled_check; my $xsubname; unless ($Type::Tiny::AvoidCallbacks) { my $paramname = Type::Tiny::XS::is_known($compiled); $xsubname = Type::Tiny::XS::get_subname_for("HashRef[$paramname]"); } return unless $param->can_be_inlined; return sub { my $v = $_[1]; return "$xsubname($v)" if $xsubname and not $Type::Tiny::AvoidCallbacks; my $p = &Types::Standard::HashRef()->inline_check($v); my $param_check = $param->inline_check('$i'); "$p and do { " . 'my $ok = 1; ' . "for my \$i (values %{$v}) { " . "(\$ok = 0, last) unless $param_check " . '}; ' . '$ok ' . '}'; } ;},"inlined" => sub { package Types::Standard; no warnings; use strict; !$Type::Tiny::AvoidCallbacks ? "Ref::Util::XS::is_plain_hashref($_[1])" : "ref($_[1]) eq 'HASH'";},"library" => "Types::Standard","my_methods" => {"hashref_allows_key" => sub { package Types::Standard::HashRef; no warnings; use strict; my $self = shift(); Types::Standard::is_Str($_[0]);},"hashref_allows_value" => sub { package Types::Standard::HashRef; no warnings; use strict; my $self = shift(); my($key, $value) = @_; return !1 unless $self->my_hashref_allows_key($key); return !0 if $self == &Types::Standard::HashRef(); my $href = $self->find_parent(sub { $_->has_parent and $_->parent == &Types::Standard::HashRef(); } ); my $param = $href->type_parameter; Types::Standard::is_Str($key) and $param->check($value);}},"name" => "HashRef","name_generator" => sub { package Type::Tiny; use warnings; use strict; defined $_ and s/[\x00-\x1F]//gms foreach (my($s, @a) = @_); sprintf '%s[%s]', $s, join(',', map((!defined($_) ? 'undef' : (!ref($_) && /\W/ ? B::perlstring($_) : $_)), @a));},"parent" => {},"type_default" => sub { package Types::Standard; no warnings; use strict; return {};},"type_default_generator" => sub { package Types::Standard; no warnings; use strict; return $Type::Tiny::parameterize_type->type_default if @_ < 2; return undef;},"uniq" => 22}, 'Type::Tiny' )],"parent" => {},"type_default" => do{my $o},"uniq" => 44}, 'Type::Tiny' )],"parent" => bless( {"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; Ref::Util::XS::is_plain_hashref($_[0]) or _failed_check(26, 'Map', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Map","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"coercion_generator" => sub { package Types::Standard::Map; no warnings; use strict; my($parent, $child, $kparam, $vparam) = @_; return unless $kparam->has_coercion or $vparam->has_coercion; my $kcoercable_item = $kparam->has_coercion ? $kparam->coercion->_source_type_union : $kparam; my $vcoercable_item = $vparam->has_coercion ? $vparam->coercion->_source_type_union : $vparam; my $C = 'Type::Coercion'->new('type_constraint', $child); if (!$kparam->has_coercion || $kparam->coercion->can_be_inlined and !$vparam->has_coercion || $vparam->coercion->can_be_inlined and $kcoercable_item->can_be_inlined and $vcoercable_item->can_be_inlined) { $C->add_type_coercions($parent, &Types::Standard::Stringable(sub { my @code; push @code, 'do { my ($orig, $return_orig, %new) = ($_, 0);'; push @code, 'for (keys %$orig) {'; push @code, sprintf('++$return_orig && last unless (%s);', $kcoercable_item->inline_check('$_')); push @code, sprintf('++$return_orig && last unless (%s);', $vcoercable_item->inline_check('$orig->{$_}')); push @code, sprintf('$new{(%s)} = (%s);', $kparam->has_coercion ? $kparam->coercion->inline_coercion('$_') : '$_', $vparam->has_coercion ? $vparam->coercion->inline_coercion('$orig->{$_}') : '$orig->{$_}'); push @code, '}'; push @code, '$return_orig ? $orig : \\%new'; push @code, '}'; join $", @code; } )); } else { $C->add_type_coercions($parent, sub { my $value = @_ ? $_[0] : $_; my %new; foreach my $k (keys %$value) { return $value unless $kcoercable_item->check($k) and $vcoercable_item->check($value->{$k}); $new{$kparam->has_coercion ? $kparam->coerce($k) : $k} = $vparam->has_coercion ? $vparam->coerce($value->{$k}) : $value->{$k}; } return \%new; } ); } return $C;},"compiled_type_constraint" => do{my $o},"constraint" => do{my $o},"constraint_generator" => sub { package Types::Standard::Map; no warnings; use strict; return $meta->get_type('Map') unless @_; Type::Tiny::check_parameter_count_for_parameterized_type('Types::Standard', 'Map', \@_, 2, 2); my($keys, $values) = @_; Types::TypeTiny::is_TypeTiny($keys) or _croak "First parameter to Map[`k,`v] expected to be a type constraint; got $keys"; Types::TypeTiny::is_TypeTiny($values) or _croak "Second parameter to Map[`k,`v] expected to be a type constraint; got $values"; my @xsub; do { my(@known) = map({my $known = Type::Tiny::XS::is_known($_->compiled_check); defined $known ? $known : ();} $keys, $values); if (@known == 2) { my $xsub = Type::Tiny::XS::get_coderef_for(sprintf('Map[%s,%s]', @known)); push @xsub, $xsub if $xsub; } }; sub { my $hash = shift(); ($keys->check($_) or return) foreach (keys %$hash); ($values->check($_) or return) foreach (values %$hash); return !0; } , @xsub;},"deep_explanation" => sub { package Types::Standard::Map; no warnings; use strict; require B; my($type, $value, $varname) = @_; my($kparam, $vparam) = @{$type->parameters;}; foreach my $k (sort keys %$value) { unless ($kparam->check($k)) { return [sprintf('"%s" constrains each key in the hash with "%s"', $type, $kparam), @{$kparam->validate_explain($k, sprintf('key %s->{%s}', $varname, B::perlstring($k)));}]; } unless ($vparam->check($value->{$k})) { return [sprintf('"%s" constrains each value in the hash with "%s"', $type, $vparam), @{$vparam->validate_explain($value->{$k}, sprintf('%s->{%s}', $varname, B::perlstring($k)));}]; } } return;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 675,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Map","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard::Map; no warnings; use strict; my($k, $v) = @_; return unless $k->can_be_inlined and $v->can_be_inlined; my $xsubname; do { my(@known) = map({my $known = Type::Tiny::XS::is_known($_->compiled_check); defined $known ? $known : ();} $k, $v); if (@known == 2) { $xsubname = Type::Tiny::XS::get_subname_for(sprintf('Map[%s,%s]', @known)); } }; return sub { my $h = $_[1]; return "$xsubname($h)" if $xsubname and not $Type::Tiny::AvoidCallbacks; my $p = &Types::Standard::HashRef()->inline_check($h); my $k_check = $k->inline_check('$k'); my $v_check = $v->inline_check('$v'); "$p and do { " . 'my $ok = 1; ' . "for my \$v (values %{$h}) { " . "(\$ok = 0, last) unless $v_check " . '}; ' . "for my \$k (keys %{$h}) { " . "(\$ok = 0, last) unless $k_check " . '}; ' . '$ok ' . '}'; } ;},"library" => "Types::Standard","my_methods" => {"hashref_allows_key" => sub { package Types::Standard::Map; no warnings; use strict; my $self = shift(); my($key) = @_; return Types::Standard::is_Str($key) if $self == &Types::Standard::Map(); my $map = $self->find_parent(sub { $_->has_parent and $_->parent == &Types::Standard::Map(); } ); my($kcheck, $vcheck) = @{$map->parameters;}; ($kcheck || &Types::Standard::Any())->check($key);},"hashref_allows_value" => sub { package Types::Standard::Map; no warnings; use strict; my $self = shift(); my($key, $value) = @_; return !1 unless $self->my_hashref_allows_key($key); return !0 if $self == &Types::Standard::Map(); my $map = $self->find_parent(sub { $_->has_parent and $_->parent == &Types::Standard::Map(); } ); my($kcheck, $vcheck) = @{$map->parameters;}; ($kcheck || &Types::Standard::Any())->check($key) and ($vcheck || &Types::Standard::Any())->check($value);}},"name" => "Map","name_generator" => sub { package Type::Tiny; use warnings; use strict; defined $_ and s/[\x00-\x1F]//gms foreach (my($s, @a) = @_); sprintf '%s[%s]', $s, join(',', map((!defined($_) ? 'undef' : (!ref($_) && /\W/ ? B::perlstring($_) : $_)), @a));},"parent" => {},"type_default_generator" => sub { package Types::Standard; no warnings; use strict; return $Type::Tiny::parameterize_type->type_default;},"uniq" => 26}, 'Type::Tiny' ),"type_default" => do{my $o},"uniq" => 45}, 'Type::Tiny' )],"parent" => bless( {"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; Ref::Util::XS::is_plain_arrayref($_[0]) or _failed_check(29, 'Tuple', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Tuple","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"coercion_generator" => sub { package Types::Standard::Tuple; no warnings; use strict; my($parent, $child, @tuple) = @_; my $slurpy = @tuple && Types::TypeTiny::is_TypeTiny($tuple[-1]) && $tuple[-1]->is_strictly_a_type_of($_Slurpy) ? pop @tuple : undef; my $child_coercions_exist = 0; my $all_inlinable = 1; foreach my $tc (@tuple, $slurpy ? $slurpy : ()) { $all_inlinable = 0 unless $tc->can_be_inlined; $all_inlinable = 0 if $tc->has_coercion and not $tc->coercion->can_be_inlined; ++$child_coercions_exist if $tc->has_coercion; } return unless $child_coercions_exist; my $C = 'Type::Coercion'->new('type_constraint', $child); my $slurpy_is_hashref = $slurpy && $slurpy->my_slurp_into eq 'HASH'; if ($all_inlinable) { $C->add_type_coercions($parent, &Types::Standard::Stringable(sub { my $label = sprintf('TUPLELABEL%d', ++$label_counter); my @code; push @code, 'do { my ($orig, $return_orig, $tmp, @new) = ($_, 0);'; push @code, "${label}: {"; push @code, sprintf('(($return_orig = 1), last %s) if @$orig > %d;', $label, scalar @tuple) unless $slurpy; foreach my $i (0 .. $#tuple) { my $ct = $tuple[$i]; my $ct_coerce = $ct->has_coercion; my $ct_optional = $ct->is_a_type_of(&Types::Standard::Optional()); push @code, sprintf('if (@$orig > %d) { $tmp = %s; (%s) ? ($new[%d]=$tmp) : (($return_orig=1), last %s) }', $i, $ct_coerce ? $ct->coercion->inline_coercion("\$orig->[$i]") : "\$orig->[$i]", $ct->inline_check('$tmp'), $i, $label); } if ($slurpy) { my $size = @tuple; push @code, sprintf('if (@$orig > %d) {', $size); push @code, sprintf($slurpy_is_hashref ? 'my $tail = do { no warnings; +{ @{$orig}[%d .. $#$orig]} };' : 'my $tail = [ @{$orig}[%d .. $#$orig] ];', $size); push @code, $slurpy->has_coercion ? sprintf('$tail = %s;', $slurpy->coercion->inline_coercion('$tail')) : ''; push @code, sprintf('(%s) ? push(@new, %s$tail) : ($return_orig++);', $slurpy->inline_check('$tail'), $slurpy_is_hashref ? '%' : '@'); push @code, '}'; } push @code, '}'; push @code, '$return_orig ? $orig : \\@new'; push @code, '}'; join $", @code; } )); } else { my(@is_optional) = map((!!$_->is_strictly_a_type_of($_Optional)), @tuple); $C->add_type_coercions($parent, sub { my $value = @_ ? $_[0] : $_; if (not $slurpy and @$value > @tuple) { return $value; } my @new; foreach my $i (0 .. $#tuple) { return \@new if $i > $value->$#* and $is_optional[$i]; my $ct = $tuple[$i]; my $x = $ct->has_coercion ? $ct->coerce($value->[$i]) : $value->[$i]; return $value unless $ct->check($x); $new[$i] = $x; } if ($slurpy and @$value > @tuple) { my $tmp = $slurpy_is_hashref ? {@{$value;}[@tuple .. $value->$#*]} : [@{$value;}[@tuple .. $value->$#*]]; $tmp = $slurpy->coerce($tmp) if $slurpy->has_coercion; $slurpy->check($tmp) ? push(@new, $slurpy_is_hashref ? %$tmp : @$tmp) : (return $value); } return \@new; } ); } return $C;},"compiled_type_constraint" => do{my $o},"constraint" => do{my $o},"constraint_generator" => sub { package Types::Standard::Tuple; no warnings; use strict; my $slurpy = @_ && Types::TypeTiny::is_TypeTiny($_[-1]) && $_[-1]->is_strictly_a_type_of($_Slurpy) ? pop() : undef; my(@constraints) = @_; foreach $_ (@constraints) { Types::TypeTiny::is_TypeTiny($_) or _croak "Parameters to Tuple[...] expected to be type constraints; got $_"; } my @xsub; unless ($slurpy) { my(@known) = map({my $known; $known = Type::Tiny::XS::is_known($_->compiled_check) unless $_->is_strictly_a_type_of($_Optional); defined $known ? $known : ();} @constraints); if (@known == @constraints) { my $xsub = Type::Tiny::XS::get_coderef_for(sprintf('Tuple[%s]', join(',', @known))); push @xsub, $xsub if $xsub; } } my(@is_optional) = map((!!$_->is_strictly_a_type_of($_Optional)), @constraints); my $slurp_hash = $slurpy && $slurpy->my_slurp_into eq 'HASH'; my $slurp_any = $slurpy && $slurpy->my_unslurpy->equals(&Types::Standard::Any()); my(@sorted_is_optional) = sort(@is_optional); join('|', @sorted_is_optional) eq join('|', @is_optional) or _croak 'Optional parameters to Tuple[...] cannot precede required parameters'; sub { my $value = $_[0]; if ($#constraints < $value->$#*) { return !1 unless $slurpy; my $tmp; if ($slurp_hash) { ($value->$#* - $#constraints + 1) % 2 or return; $tmp = {@$value[$#constraints + 1 .. $value->$#*]}; $slurpy->check($tmp) or return; } elsif (not $slurp_any) { $tmp = [@$value[$#constraints + 1 .. $value->$#*]]; $slurpy->check($tmp) or return; } } foreach my $i (0 .. $#constraints) { $i > $value->$#* and return !!$is_optional[$i]; $constraints[$i]->check($value->[$i]) or return !1; } return !0; } , @xsub;},"deep_explanation" => sub { package Types::Standard::Tuple; no warnings; use strict; my($type, $value, $varname) = @_; my(@constraints) = @{$type->parameters;}; my $slurpy = @constraints && Types::TypeTiny::is_TypeTiny($constraints[-1]) && $constraints[-1]->is_strictly_a_type_of($_Slurpy) ? pop @constraints : undef; @constraints = map(Types::TypeTiny::to_TypeTiny($_), @constraints); if (@constraints < @$value and not $slurpy) { return [sprintf('"%s" expects at most %d values in the array', $type, scalar @constraints), sprintf('%d values found; too many', scalar @$value)]; } foreach my $i (0 .. $#constraints) { next if $constraints[$i]->is_strictly_a_type_of(&Types::Standard::Optional()) and $i > $value->$#*; next if $constraints[$i]->check($value->[$i]); return [sprintf('"%s" constrains value at index %d of array with "%s"', $type, $i, $constraints[$i]), @{$constraints[$i]->validate_explain($value->[$i], sprintf('%s->[%s]', $varname, $i));}]; } if (defined $slurpy) { my $tmp = $slurpy->my_slurp_into eq 'HASH' ? {@$value[$#constraints + 1 .. $value->$#*]} : [@$value[$#constraints + 1 .. $value->$#*]]; $slurpy->check($tmp) or return [sprintf('Array elements from index %d are slurped into a %s which is constrained with "%s"', $#constraints + 1, $slurpy->my_slurp_into eq 'HASH' ? 'hashref' : 'arrayref', $slurpy->my_unslurpy || $slurpy), @{($slurpy->my_unslurpy || $slurpy)->validate_explain($tmp, '$SLURPY');}]; } return;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 802,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Tuple","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard::Tuple; no warnings; use strict; my $slurpy = @_ && Types::TypeTiny::is_TypeTiny($_[-1]) && $_[-1]->is_strictly_a_type_of($_Slurpy) ? pop() : undef; my(@constraints) = @_; return if grep {not $_->can_be_inlined;} @constraints; return if defined $slurpy and not $slurpy->can_be_inlined; my $xsubname; unless ($slurpy) { my(@known) = map({my $known; $known = Type::Tiny::XS::is_known($_->compiled_check) unless $_->is_strictly_a_type_of($_Optional); defined $known ? $known : ();} @constraints); if (@known == @constraints) { $xsubname = Type::Tiny::XS::get_subname_for(sprintf('Tuple[%s]', join(',', @known))); } } my $tmpl = 'do { my $tmp = +[@{%s}[%d..$#{%s}]]; %s }'; my $slurpy_any; if (defined $slurpy) { $tmpl = 'do { my ($orig, $from, $to) = (%s, %d, $#{%s});(($to-$from) %% 2) and do { my $tmp = +{@{$orig}[$from..$to]}; %s }}' if $slurpy->my_slurp_into eq 'HASH'; $slurpy_any = 1 if $slurpy->my_unslurpy->equals(&Types::Standard::Any()); } my(@is_optional) = map((!!$_->is_strictly_a_type_of($_Optional)), @constraints); my $min = 0 + grep((!$_), @is_optional); return sub { my $v = $_[1]; return "$xsubname($v)" if $xsubname and not $Type::Tiny::AvoidCallbacks; join ' and ', &Types::Standard::ArrayRef()->inline_check($v), scalar @constraints == $min && !$slurpy ? "\@{$v} == $min" : sprintf("(\@{$v} == $min or (\@{$v} > $min and \@{$v} <= ${\(1 + $#constraints);}) or (\@{$v} > ${\(1 + $#constraints);} and %s))", $slurpy_any ? '!!1' : ($slurpy ? sprintf($tmpl, $v, $#constraints + 1, $v, $slurpy->inline_check('$tmp')) : sprintf("\@{$v} <= %d", scalar @constraints))), map({my $inline = $constraints[$_]->inline_check("$v->[$_]"); $inline eq '(!!1)' ? () : $is_optional[$_] ? sprintf('(@{%s} <= %d or %s)', $v, $_, $inline) : $inline;} 0 .. $#constraints); } ;},"library" => "Types::Standard","name" => "Tuple","name_generator" => sub { package Types::Standard; no warnings; use strict; my($s, @a) = @_; sprintf '%s[%s]', $s, join(',', @a);},"parent" => {},"uniq" => 29}, 'Type::Tiny' ),"uniq" => 46}, 'Type::Tiny' ),"uniq" => 47}, 'Type::Tiny' );$v->{"parent"}{"compiled_type_constraint"} = $v->{"compiled_type_constraint"};$v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"constraint"} = $v->{"constraint"};$v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"coercion"}{"_compiled_type_constraint_check"} = $v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"compiled_type_constraint"};$v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"};$v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"compiled_type_constraint"};$v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"};$v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"constraint"} = $v->{"constraint"};$v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"} = $v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"};$v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"};$v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"};$v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"}{"complementary_type"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"}{"complementary_type"};$v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"}{"complementary_type"}{"compiled_type_constraint"} = $v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"}{"complementary_type"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"}{"complementary_type"}{"complementary_type"} = $v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"};$v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"};$v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"constraint"} = $v->{"constraint"};$v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"} = $v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"};$v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"constraint"} = $v->{"constraint"};$v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"}{"parent"} = $v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"};$v->{"parent"}{"parameters"}[0]{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parameters"}[0]{"parent"};$v->{"parent"}{"parameters"}[0]{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parameters"}[0]{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parameters"}[0]{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parameters"}[0]{"parent"}{"parent"};$v->{"parent"}{"parameters"}[0]{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parameters"}[0]{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parameters"}[0]{"parent"}{"parent"}{"parent"} = $v->{"parent"}{"parameters"}[0]{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"};$v->{"parent"}{"parameters"}[0]{"type_default"} = $v->{"parent"}{"parameters"}[0]{"parent"}{"type_default"};$v->{"parent"}{"parameters"}[1]{"parameters"}[0] = $v->{"parent"}{"parameters"}[0]{"parameters"}[0];$v->{"parent"}{"parameters"}[1]{"parameters"}[1]{"coercion"}{"type_constraint"} = $v->{"parent"}{"parameters"}[1]{"parameters"}[1];$v->{"parent"}{"parameters"}[1]{"parameters"}[1]{"compiled_type_constraint"} = $v->{"parent"}{"parameters"}[1]{"parameters"}[1]{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parameters"}[1]{"parameters"}[1]{"parameters"}[0]{"coercion"}{"type_constraint"} = $v->{"parent"}{"parameters"}[1]{"parameters"}[1]{"parameters"}[0];$v->{"parent"}{"parameters"}[1]{"parameters"}[1]{"parameters"}[0]{"compiled_type_constraint"} = $v->{"parent"}{"parameters"}[1]{"parameters"}[1]{"parameters"}[0]{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parameters"}[1]{"parameters"}[1]{"parameters"}[0]{"parent"} = $v->{"parent"}{"parameters"}[0]{"parent"}{"parent"};$v->{"parent"}{"parameters"}[1]{"parameters"}[1]{"parent"} = $v->{"parent"}{"parameters"}[0]{"parent"};$v->{"parent"}{"parameters"}[1]{"parameters"}[1]{"type_default"} = $v->{"parent"}{"parameters"}[0]{"parent"}{"type_default"};$v->{"parent"}{"parameters"}[1]{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parameters"}[1]{"parent"};$v->{"parent"}{"parameters"}[1]{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parameters"}[1]{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parameters"}[1]{"parent"}{"constraint"} = $v->{"constraint"};$v->{"parent"}{"parameters"}[1]{"parent"}{"parent"} = $v->{"parent"}{"parameters"}[1]{"parameters"}[1]{"parameters"}[0];$v->{"parent"}{"parameters"}[1]{"type_default"} = $v->{"parent"}{"parameters"}[1]{"parameters"}[1]{"parameters"}[0]{"type_default"};$v->{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parent"}{"parent"};$v->{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parent"}{"parent"}{"constraint"} = $v->{"constraint"};$v->{"parent"}{"parent"}{"parent"} = $v->{"parent"}{"parameters"}[0]{"parent"}; \$v}->get_message($fields_got)) |
966 |
154 |
1120 |
| $visited_fragments = ${my $v = bless( {"_build_coercion" => sub { package Type::Tiny; use warnings; use strict; my $coercion = shift(); my $built = $self->coercion_generator->($self, $P, @args); $coercion->add_type_coercions(@{$built->type_coercion_map;}) if $built; $coercion->freeze;},"coercion" => bless( {"_compiled_type_constraint_check" => sub ($) { package Eval::TypeTiny::Sandbox; use strict; do { package Type::Tiny; Ref::Util::XS::is_plain_hashref($_[0]) and do { my $ok = 1; foreach my $v (values %{$_[0];}) { $ok = 0, last unless Type::Tiny::XS::Bool($v); } foreach my $k (keys %{$_[0];}) { $ok = 0, last unless defined $k and not ref $k and not !($k =~ qr/(?^u:^[_a-zA-Z][_a-zA-Z0-9]*$)/); } $ok } };},"compiled_coercion" => sub ($) { package Eval::TypeTiny::Sandbox; use strict; do { package Type::Tiny; Ref::Util::XS::is_plain_hashref($_[0]) and do { my $ok = 1; foreach my $v (values %{$_[0];}) { $ok = 0, last unless Type::Tiny::XS::Bool($v); } foreach my $k (keys %{$_[0];}) { $ok = 0, last unless defined $k and not ref $k and not !($k =~ qr/(?^u:^[_a-zA-Z][_a-zA-Z0-9]*$)/); } $ok } } ? $_[0] : (Ref::Util::XS::is_plain_hashref($_[0]) ? scalar do { local $_ = $_[0]; do { my($orig, $return_orig, %new) = ($_, 0); foreach $_ (keys %$orig) { ++$return_orig and last unless defined $_ and not ref $_ and not !($_ =~ qr/(?^u:^[_a-zA-Z][_a-zA-Z0-9]*$)/); ++$return_orig and last unless Type::Tiny::XS::AUTO::TC18($orig->{$_}); $new{$_} = do { package Type::Tiny; Type::Tiny::XS::Bool($orig->{$_}) } ? $orig->{$_} : scalar do { local $_ = $orig->{$_}; not !$_ }; } $return_orig ? $orig : \%new } } : $_[0]);},"display_name" => "__ANON__","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [bless( {"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; Ref::Util::XS::is_plain_hashref($_[0]) or _failed_check(26, 'Map', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Map","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"coercion_generator" => sub { package Types::Standard::Map; no warnings; use strict; my($parent, $child, $kparam, $vparam) = @_; return unless $kparam->has_coercion or $vparam->has_coercion; my $kcoercable_item = $kparam->has_coercion ? $kparam->coercion->_source_type_union : $kparam; my $vcoercable_item = $vparam->has_coercion ? $vparam->coercion->_source_type_union : $vparam; my $C = 'Type::Coercion'->new('type_constraint', $child); if (!$kparam->has_coercion || $kparam->coercion->can_be_inlined and !$vparam->has_coercion || $vparam->coercion->can_be_inlined and $kcoercable_item->can_be_inlined and $vcoercable_item->can_be_inlined) { $C->add_type_coercions($parent, &Types::Standard::Stringable(sub { my @code; push @code, 'do { my ($orig, $return_orig, %new) = ($_, 0);'; push @code, 'for (keys %$orig) {'; push @code, sprintf('++$return_orig && last unless (%s);', $kcoercable_item->inline_check('$_')); push @code, sprintf('++$return_orig && last unless (%s);', $vcoercable_item->inline_check('$orig->{$_}')); push @code, sprintf('$new{(%s)} = (%s);', $kparam->has_coercion ? $kparam->coercion->inline_coercion('$_') : '$_', $vparam->has_coercion ? $vparam->coercion->inline_coercion('$orig->{$_}') : '$orig->{$_}'); push @code, '}'; push @code, '$return_orig ? $orig : \\%new'; push @code, '}'; join $", @code; } )); } else { $C->add_type_coercions($parent, sub { my $value = @_ ? $_[0] : $_; my %new; foreach my $k (keys %$value) { return $value unless $kcoercable_item->check($k) and $vcoercable_item->check($value->{$k}); $new{$kparam->has_coercion ? $kparam->coerce($k) : $k} = $vparam->has_coercion ? $vparam->coerce($value->{$k}) : $value->{$k}; } return \%new; } ); } return $C;},"compiled_type_constraint" => do{my $o},"constraint" => sub { package Type::Tiny; use warnings; use strict; !0;},"constraint_generator" => sub { package Types::Standard::Map; no warnings; use strict; return $meta->get_type('Map') unless @_; Type::Tiny::check_parameter_count_for_parameterized_type('Types::Standard', 'Map', \@_, 2, 2); my($keys, $values) = @_; Types::TypeTiny::is_TypeTiny($keys) or _croak "First parameter to Map[`k,`v] expected to be a type constraint; got $keys"; Types::TypeTiny::is_TypeTiny($values) or _croak "Second parameter to Map[`k,`v] expected to be a type constraint; got $values"; my @xsub; do { my(@known) = map({my $known = Type::Tiny::XS::is_known($_->compiled_check); defined $known ? $known : ();} $keys, $values); if (@known == 2) { my $xsub = Type::Tiny::XS::get_coderef_for(sprintf('Map[%s,%s]', @known)); push @xsub, $xsub if $xsub; } }; sub { my $hash = shift(); ($keys->check($_) or return) foreach (keys %$hash); ($values->check($_) or return) foreach (values %$hash); return !0; } , @xsub;},"deep_explanation" => sub { package Types::Standard::Map; no warnings; use strict; require B; my($type, $value, $varname) = @_; my($kparam, $vparam) = @{$type->parameters;}; foreach my $k (sort keys %$value) { unless ($kparam->check($k)) { return [sprintf('"%s" constrains each key in the hash with "%s"', $type, $kparam), @{$kparam->validate_explain($k, sprintf('key %s->{%s}', $varname, B::perlstring($k)));}]; } unless ($vparam->check($value->{$k})) { return [sprintf('"%s" constrains each value in the hash with "%s"', $type, $vparam), @{$vparam->validate_explain($value->{$k}, sprintf('%s->{%s}', $varname, B::perlstring($k)));}]; } } return;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 675,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Map","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard::Map; no warnings; use strict; my($k, $v) = @_; return unless $k->can_be_inlined and $v->can_be_inlined; my $xsubname; do { my(@known) = map({my $known = Type::Tiny::XS::is_known($_->compiled_check); defined $known ? $known : ();} $k, $v); if (@known == 2) { $xsubname = Type::Tiny::XS::get_subname_for(sprintf('Map[%s,%s]', @known)); } }; return sub { my $h = $_[1]; return "$xsubname($h)" if $xsubname and not $Type::Tiny::AvoidCallbacks; my $p = &Types::Standard::HashRef()->inline_check($h); my $k_check = $k->inline_check('$k'); my $v_check = $v->inline_check('$v'); "$p and do { " . 'my $ok = 1; ' . "for my \$v (values %{$h}) { " . "(\$ok = 0, last) unless $v_check " . '}; ' . "for my \$k (keys %{$h}) { " . "(\$ok = 0, last) unless $k_check " . '}; ' . '$ok ' . '}'; } ;},"library" => "Types::Standard","my_methods" => {"hashref_allows_key" => sub { package Types::Standard::Map; no warnings; use strict; my $self = shift(); my($key) = @_; return Types::Standard::is_Str($key) if $self == &Types::Standard::Map(); my $map = $self->find_parent(sub { $_->has_parent and $_->parent == &Types::Standard::Map(); } ); my($kcheck, $vcheck) = @{$map->parameters;}; ($kcheck || &Types::Standard::Any())->check($key);},"hashref_allows_value" => sub { package Types::Standard::Map; no warnings; use strict; my $self = shift(); my($key, $value) = @_; return !1 unless $self->my_hashref_allows_key($key); return !0 if $self == &Types::Standard::Map(); my $map = $self->find_parent(sub { $_->has_parent and $_->parent == &Types::Standard::Map(); } ); my($kcheck, $vcheck) = @{$map->parameters;}; ($kcheck || &Types::Standard::Any())->check($key) and ($vcheck || &Types::Standard::Any())->check($value);}},"name" => "Map","name_generator" => sub { package Type::Tiny; use warnings; use strict; defined $_ and s/[\x00-\x1F]//gms foreach (my($s, @a) = @_); sprintf '%s[%s]', $s, join(',', map((!defined($_) ? 'undef' : (!ref($_) && /\W/ ? B::perlstring($_) : $_)), @a));},"parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Sub::Defer; use warnings; use strict; $undeferred ||= undefer_sub($deferred_info->[4]); goto \&$undeferred;},"_overload_coderef_no_rebuild" => 1,"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_HashRef","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"coercion_generator" => sub { package Types::Standard::HashRef; no warnings; use strict; my($parent, $child, $param) = @_; return unless $param->has_coercion; my $coercable_item = $param->coercion->_source_type_union; my $C = 'Type::Coercion'->new('type_constraint', $child); if ($param->coercion->can_be_inlined and $coercable_item->can_be_inlined) { $C->add_type_coercions($parent, &Types::Standard::Stringable(sub { my @code; push @code, 'do { my ($orig, $return_orig, %new) = ($_, 0);'; push @code, 'for (keys %$orig) {'; push @code, sprintf('$return_orig++ && last unless (%s);', $coercable_item->inline_check('$orig->{$_}')); push @code, sprintf('$new{$_} = (%s);', $param->coercion->inline_coercion('$orig->{$_}')); push @code, '}'; push @code, '$return_orig ? $orig : \\%new'; push @code, '}'; join $", @code; } )); } else { $C->add_type_coercions($parent, sub { my $value = @_ ? $_[0] : $_; my %new; foreach my $k (keys %$value) { return $value unless $coercable_item->check($value->{$k}); $new{$k} = $param->coerce($value->{$k}); } return \%new; } ); } return $C;},"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; ref $_ eq 'HASH';},"constraint_generator" => sub { package Types::Standard::HashRef; no warnings; use strict; return &Types::Standard::HashRef() unless @_; require Error::TypeTiny::WrongNumberOfParameters; Type::Tiny::check_parameter_count_for_parameterized_type('Types::Standard', 'HashRef', \@_, 1); my $param = shift(); Types::TypeTiny::is_TypeTiny($param) or _croak "Parameter to HashRef[`a] expected to be a type constraint; got $param"; my $param_compiled_check = $param->compiled_check; my $xsub; do { my $paramname = Type::Tiny::XS::is_known($param_compiled_check); $xsub = Type::Tiny::XS::get_coderef_for("HashRef[$paramname]") if $paramname }; return sub { my $hash = shift(); ($param->check($_) or return) foreach (values %$hash); return !0; } , $xsub;},"deep_explanation" => sub { package Types::Standard::HashRef; no warnings; use strict; require B; my($type, $value, $varname) = @_; my $param = $type->parameters->[0]; foreach my $k (sort keys %$value) { my $item = $value->{$k}; next if $param->check($item); return [sprintf('"%s" constrains each value in the hash with "%s"', $type, $param), @{$param->validate_explain($item, sprintf('%s->{%s}', $varname, B::perlstring($k)));}]; } return;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 544,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "HashRef","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard::HashRef; no warnings; use strict; my $param = shift(); my $compiled = $param->compiled_check; my $xsubname; unless ($Type::Tiny::AvoidCallbacks) { my $paramname = Type::Tiny::XS::is_known($compiled); $xsubname = Type::Tiny::XS::get_subname_for("HashRef[$paramname]"); } return unless $param->can_be_inlined; return sub { my $v = $_[1]; return "$xsubname($v)" if $xsubname and not $Type::Tiny::AvoidCallbacks; my $p = &Types::Standard::HashRef()->inline_check($v); my $param_check = $param->inline_check('$i'); "$p and do { " . 'my $ok = 1; ' . "for my \$i (values %{$v}) { " . "(\$ok = 0, last) unless $param_check " . '}; ' . '$ok ' . '}'; } ;},"inlined" => sub { package Types::Standard; no warnings; use strict; !$Type::Tiny::AvoidCallbacks ? "Ref::Util::XS::is_plain_hashref($_[1])" : "ref($_[1]) eq 'HASH'";},"library" => "Types::Standard","my_methods" => {"hashref_allows_key" => sub { package Types::Standard::HashRef; no warnings; use strict; my $self = shift(); Types::Standard::is_Str($_[0]);},"hashref_allows_value" => sub { package Types::Standard::HashRef; no warnings; use strict; my $self = shift(); my($key, $value) = @_; return !1 unless $self->my_hashref_allows_key($key); return !0 if $self == &Types::Standard::HashRef(); my $href = $self->find_parent(sub { $_->has_parent and $_->parent == &Types::Standard::HashRef(); } ); my $param = $href->type_parameter; Types::Standard::is_Str($key) and $param->check($value);}},"name" => "HashRef","name_generator" => sub { package Type::Tiny; use warnings; use strict; defined $_ and s/[\x00-\x1F]//gms foreach (my($s, @a) = @_); sprintf '%s[%s]', $s, join(',', map((!defined($_) ? 'undef' : (!ref($_) && /\W/ ? B::perlstring($_) : $_)), @a));},"parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; not ref $_[0] and _failed_check(16, 'Ref', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Ref","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; ref $_;},"constraint_generator" => sub { package Types::Standard; no warnings; use strict; return $meta->get_type('Ref') unless @_; Type::Tiny::check_parameter_count_for_parameterized_type('Types::Standard', 'Ref', \@_, 1); my $reftype = shift(); $reftype =~ /^(SCALAR|ARRAY|HASH|CODE|REF|GLOB|LVALUE|FORMAT|IO|VSTRING|REGEXP|Regexp)$/i or _croak "Parameter to Ref[`a] expected to be a Perl ref type; got $reftype"; $reftype = "$reftype"; return sub { ref $_[0] and builtin::reftype($_[0]) eq $reftype; } ;},"deep_explanation" => sub { package Types::Standard; no warnings; use strict; require B; my($type, $value, $varname) = @_; my $param = $type->parameters->[0]; return if $type->check($value); my $reftype = builtin::reftype($value); return [sprintf('"%s" constrains reftype(%s) to be equal to %s', $type, $varname, B::perlstring($param)), sprintf('reftype(%s) is %s', $varname, defined $reftype ? B::perlstring($reftype) : 'undef')];},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 438,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Ref","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard; no warnings; use strict; my $reftype = shift(); return sub { my $v = $_[1]; &$maybe_load_modules('Scalar::Util', "ref($v) and Scalar::Util::reftype($v) eq q($reftype)"); } ;},"inlined" => sub { package Types::Standard; no warnings; use strict; "!!ref($_[1])";},"library" => "Types::Standard","name" => "Ref","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; defined $_[0] or _failed_check(7, 'Defined', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Defined","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complementary_type" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; defined $_[0] and _failed_check(6, 'Undef', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Undef","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complementary_type" => {},"constraint" => sub { package Types::Standard; no warnings; use strict; not defined $_;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 254,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Undef","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; "!defined($_[1])";},"library" => "Types::Standard","name" => "Undef","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; '???'; $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Item","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => do{my $o},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 226,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Item","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; '!!1';},"library" => "Types::Standard","name" => "Item","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Sub::Defer; use warnings; use strict; $undeferred ||= undefer_sub($deferred_info->[4]); goto \&$undeferred;},"_overload_coderef_no_rebuild" => 1,"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => do{my $o},"display_name" => "to_Any","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complement_name" => "None","constraint" => do{my $o},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 220,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Any","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; '!!1';},"library" => "Types::Standard","name" => "Any","type_default" => sub { package Types::Standard; no warnings; use strict; return undef;},"uniq" => 1}, 'Type::Tiny' ),"uniq" => 2}, 'Type::Tiny' ),"type_default" => sub { package Types::Standard; no warnings; use strict; return undef;},"uniq" => 6}, 'Type::Tiny' ),"constraint" => sub { package Types::Standard; no warnings; use strict; defined $_;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 262,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Defined","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; "defined($_[1])";},"library" => "Types::Standard","name" => "Defined","parent" => {},"uniq" => 7}, 'Type::Tiny' ),"uniq" => 16}, 'Type::Tiny' ),"type_default" => sub { package Types::Standard; no warnings; use strict; return {};},"type_default_generator" => sub { package Types::Standard; no warnings; use strict; return $Type::Tiny::parameterize_type->type_default if @_ < 2; return undef;},"uniq" => 22}, 'Type::Tiny' ),"type_default_generator" => sub { package Types::Standard; no warnings; use strict; return $Type::Tiny::parameterize_type->type_default;},"uniq" => 26}, 'Type::Tiny' ),bless( {"code" => sub { package Types::Standard::Map; no warnings; use strict; my @code; push @code, 'do { my ($orig, $return_orig, %new) = ($_, 0);'; push @code, 'for (keys %$orig) {'; push @code, sprintf('++$return_orig && last unless (%s);', $kcoercable_item->inline_check('$_')); push @code, sprintf('++$return_orig && last unless (%s);', $vcoercable_item->inline_check('$orig->{$_}')); push @code, sprintf('$new{(%s)} = (%s);', $kparam->has_coercion ? $kparam->coercion->inline_coercion('$_') : '$_', $vparam->has_coercion ? $vparam->coercion->inline_coercion('$orig->{$_}') : '$orig->{$_}'); push @code, '}'; push @code, '$return_orig ? $orig : \\%new'; push @code, '}'; join $", @code;},"text" => "do { my (\$orig, \$return_orig, %new) = (\$_, 0); for (keys %\$orig) { ++\$return_orig && last unless ((defined(\$_) and !ref(\$_) and !!( \$_ =~ qr/(?^u:^[_a-zA-Z][_a-zA-Z0-9]*\$)/ ))); ++\$return_orig && last unless (Type::Tiny::XS::AUTO::TC18(\$orig->{\$_})); \$new{(\$_)} = ((do { package Type::Tiny; Type::Tiny::XS::Bool(\$orig->{\$_}) }) ? \$orig->{\$_} : ((!!1)) ? scalar(do { local \$_ = \$orig->{\$_}; !!\$_ }) : \$orig->{\$_}); } \$return_orig ? \$orig : \\%new }"}, 'Types::Standard::_Stringable' )],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard::Map; no warnings; use strict; my $hash = shift(); ($keys->check($_) or return) foreach (keys %$hash); ($values->check($_) or return) foreach (values %$hash); return !0;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/x86_64-linux/Function/Parameters.pm","line" => 98,"package" => "Function::Parameters"},"deprecated" => !!0,"display_name" => "Map[StrNameValid,Bool]","inlined" => sub { package Types::Standard::Map; no warnings; use strict; my $h = $_[1]; return "$xsubname($h)" if $xsubname and not $Type::Tiny::AvoidCallbacks; my $p = &Types::Standard::HashRef()->inline_check($h); my $k_check = $k->inline_check('$k'); my $v_check = $v->inline_check('$v'); "$p and do { " . 'my $ok = 1; ' . "for my \$v (values %{$h}) { " . "(\$ok = 0, last) unless $v_check " . '}; ' . "for my \$k (keys %{$h}) { " . "(\$ok = 0, last) unless $k_check " . '}; ' . '$ok ' . '}';},"name" => "__ANON__","parameters" => [bless( {"_overload_coderef" => sub { package Sub::Defer; use warnings; use strict; $undeferred ||= undefer_sub($deferred_info->[4]); goto \&$undeferred;},"_overload_coderef_no_rebuild" => 1,"_overrides_assert_return" => !!0,"compiled_type_constraint" => sub ($) { package Eval::TypeTiny::Sandbox; use strict; defined $_[0] and not ref $_[0] and not !($_[0] =~ qr/(?^u:^[_a-zA-Z][_a-zA-Z0-9]*$)/);},"constraint" => do{my $o},"definition_context" => {"file" => "/home/cpancover/.cpan/build/GraphQL-0.54-0/blib/lib/GraphQL/Type/Library.pm","line" => 42,"package" => "GraphQL::Type::Library"},"deprecated" => !!0,"display_name" => "StrNameValid","exception_class" => "Error::TypeTiny::Assertion","library" => "GraphQL::Type::Library","name" => "StrNameValid","parent" => bless( {"coercion" => bless( {"_compiled_type_constraint_check" => do{my $o},"frozen" => 1,"name" => "__ANON__","type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard::StrMatch; no warnings; use strict; my $value = shift(); defined $value and not ref $value and not !($value =~ /$regexp/);},"definition_context" => {"file" => "/home/cpancover/.cpan/build/GraphQL-0.54-0/blib/lib/GraphQL/Type/Library.pm","line" => 42,"package" => "GraphQL::Type::Library"},"deprecated" => !!0,"display_name" => "StrMatch[(?^u:^[_a-zA-Z][_a-zA-Z0-9]*\$)]","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard::StrMatch; no warnings; use strict; my $v = $_[1]; if ($Type::Tiny::AvoidCallbacks and $serialized_re =~ /Types::Standard::StrMatch::expressions/) { require Carp; Carp::carp('Cannot serialize regexp without callbacks; serializing using callbacks'); } "defined($v) and !ref($v) and !!( $v =~ $serialized_re )";},"name" => "__ANON__","parameters" => [qr/^[_a-zA-Z][_a-zA-Z0-9]*$/u],"parent" => bless( {"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; Type::Tiny::XS::Str($_[0]) or _failed_check(33, 'StrMatch', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_StrMatch","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => do{my $o},"constraint_generator" => sub { package Types::Standard::StrMatch; no warnings; use strict; return 'Types::Standard'->meta->get_type('StrMatch') unless @_; Type::Tiny::check_parameter_count_for_parameterized_type('Types::Standard', 'StrMatch', \@_, 2, 1); my($regexp, $checker) = @_; &Types::Standard::is_RegexpRef($regexp) or _croak "First parameter to StrMatch[`a] expected to be a Regexp; got $regexp"; if (@_ > 1) { $checker = Types::TypeTiny::to_TypeTiny($checker); Types::TypeTiny::is_TypeTiny($checker) or _croak "Second parameter to StrMatch[`a] expected to be a type constraint; got $checker"; } $checker ? sub { my $value = shift(); return unless defined $value; return if ref $value; my(@m) = $value =~ /$regexp/; $checker->check(\@m); } : sub { my $value = shift(); defined $value and not ref $value and not !($value =~ /$regexp/); } ;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 902,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "StrMatch","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard::StrMatch; no warnings; use strict; require B; my($regexp, $checker) = @_; my $serialized_re = $regexp->$serialize_regexp or return; if ($checker) { return unless $checker->can_be_inlined; return sub { my $v = $_[1]; if ($Type::Tiny::AvoidCallbacks and $serialized_re =~ /Types::Standard::StrMatch::expressions/) { require Carp; Carp::carp('Cannot serialize regexp without callbacks; serializing using callbacks'); } sprintf "defined($v) and !ref($v) and do { my \$m = [$v =~ %s]; %s }", $serialized_re, $checker->inline_check('$m'); } ; } else { my $regexp_string = "$regexp"; if ($regexp_string =~ /\A\(\?\^u?:\\A(\.+)\)\z/) { my $length = length $1; return sub { "defined($_) and !ref($_) and length($_)>=$length"; } ; } if ($regexp_string =~ /\A\(\?\^u?:\\A(\.+)\\z\)\z/) { my $length = length $1; return sub { "defined($_) and !ref($_) and length($_)==$length"; } ; } return sub { my $v = $_[1]; if ($Type::Tiny::AvoidCallbacks and $serialized_re =~ /Types::Standard::StrMatch::expressions/) { require Carp; Carp::carp('Cannot serialize regexp without callbacks; serializing using callbacks'); } "defined($v) and !ref($v) and !!( $v =~ $serialized_re )"; } ; }},"library" => "Types::Standard","name" => "StrMatch","name_generator" => sub { package Type::Tiny; use warnings; use strict; defined $_ and s/[\x00-\x1F]//gms foreach (my($s, @a) = @_); sprintf '%s[%s]', $s, join(',', map((!defined($_) ? 'undef' : (!ref($_) && /\W/ ? B::perlstring($_) : $_)), @a));},"parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Sub::Defer; use warnings; use strict; $undeferred ||= undefer_sub($deferred_info->[4]); goto \&$undeferred;},"_overload_coderef_no_rebuild" => 1,"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => do{my $o},"display_name" => "to_Str","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; ref \$_ eq 'SCALAR' or ref \(my $val = $_) eq 'SCALAR';},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 291,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Str","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; use warnings; use strict; $Type::Tiny::AvoidCallbacks ? goto $orig_inlined : "$xsubname($_[1])";},"library" => "Types::Standard","name" => "Str","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; defined $_[0] and not ref $_[0] or _failed_check(8, 'Value', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Value","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; not ref $_;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 276,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Value","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; "defined($_[1]) and not ref($_[1])";},"library" => "Types::Standard","name" => "Value","parent" => {},"uniq" => 8}, 'Type::Tiny' ),"sorter" => sub { package Types::Standard; no warnings; use strict; $_[0] cmp $_[1];},"type_default" => sub { package Types::Standard; no warnings; use strict; return '';},"uniq" => 9}, 'Type::Tiny' ),"uniq" => 33}, 'Type::Tiny' ),"uniq" => 40}, 'Type::Tiny' ),"uniq" => 41}, 'Type::Tiny' ),bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; Type::Tiny::XS::Bool($_[0]) or _failed_check(3, 'Bool', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"compiled_coercion" => sub ($) { package Eval::TypeTiny::Sandbox; use strict; Type::Tiny::XS::Bool($_[0]) ? $_[0] : scalar do { local $_ = $_[0]; not !$_ };},"display_name" => "to_Bool","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [{},"!!\$_"],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; not ref $_ and !defined($_) || $_ eq '' || $_ eq '0' || $_ eq '1';},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 242,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Bool","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; use warnings; use strict; $Type::Tiny::AvoidCallbacks ? goto $orig_inlined : "$xsubname($_[1])";},"library" => "Types::Standard","name" => "Bool","parent" => {},"type_default" => sub { package Types::Standard; no warnings; use strict; return !1;},"uniq" => 3}, 'Type::Tiny' )],"parent" => {},"type_default" => do{my $o},"uniq" => 120}, 'Type::Tiny' );$v->{"coercion"}{"type_coercion_map"}[0]{"coercion"}{"type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0];$v->{"coercion"}{"type_coercion_map"}[0]{"compiled_type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"coercion"}{"_compiled_type_constraint_check"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"coercion"}{"type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"compiled_type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"coercion"}{"type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"compiled_type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"complementary_type"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"compiled_type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"constraint"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"constraint"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"parent"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"};$v->{"coercion"}{"type_constraint"} = $v;$v->{"compiled_type_constraint"} = $v->{"coercion"}{"_compiled_type_constraint_check"};$v->{"parameters"}[0]{"constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"constraint"};$v->{"parameters"}[0]{"parent"}{"coercion"}{"_compiled_type_constraint_check"} = $v->{"parameters"}[0]{"compiled_type_constraint"};$v->{"parameters"}[0]{"parent"}{"coercion"}{"type_constraint"} = $v->{"parameters"}[0]{"parent"};$v->{"parameters"}[0]{"parent"}{"compiled_type_constraint"} = $v->{"parameters"}[0]{"compiled_type_constraint"};$v->{"parameters"}[0]{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parameters"}[0]{"parent"}{"parent"};$v->{"parameters"}[0]{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parameters"}[0]{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parameters"}[0]{"parent"}{"parent"}{"constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"constraint"};$v->{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"} = $v->{"parameters"}[0]{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parameters"}[0]{"parent"}{"parent"}{"parent"};$v->{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parameters"}[0]{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"};$v->{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"};$v->{"parameters"}[1]{"coercion"}{"type_coercion_map"}[0] = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"};$v->{"parameters"}[1]{"coercion"}{"type_constraint"} = $v->{"parameters"}[1];$v->{"parameters"}[1]{"compiled_type_constraint"} = $v->{"parameters"}[1]{"coercion"}{"_compiled_type_constraint_check"};$v->{"parameters"}[1]{"parent"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"};$v->{"parent"} = $v->{"coercion"}{"type_coercion_map"}[0];$v->{"type_default"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"type_default"}; \$v}->coerce($visited_fragments), do {
package Type::Tiny;
Ref::Util::XS::is_plain_hashref($visited_fragments) and do {
my $ok = 1;
foreach my $v (values %{$visited_fragments;}) {
$ok = 0, last unless Type::Tiny::XS::Bool($v);
};
foreach my $k (keys %{$visited_fragments;}) {
$ok = 0, last unless defined $k and not ref $k and not !($k =~ qr/(?^u:^[_a-zA-Z][_a-zA-Z0-9]*$)/u);
};
$ok
}
} or Function::Parameters::_croak('In method _collect_fields: parameter 4 ($visited_fragments): ' . ${my $v = bless( {"_build_coercion" => sub { package Type::Tiny; use warnings; use strict; my $coercion = shift(); my $built = $self->coercion_generator->($self, $P, @args); $coercion->add_type_coercions(@{$built->type_coercion_map;}) if $built; $coercion->freeze;},"coercion" => bless( {"_compiled_type_constraint_check" => sub ($) { package Eval::TypeTiny::Sandbox; use strict; do { package Type::Tiny; Ref::Util::XS::is_plain_hashref($_[0]) and do { my $ok = 1; foreach my $v (values %{$_[0];}) { $ok = 0, last unless Type::Tiny::XS::Bool($v); } foreach my $k (keys %{$_[0];}) { $ok = 0, last unless defined $k and not ref $k and not !($k =~ qr/(?^u:^[_a-zA-Z][_a-zA-Z0-9]*$)/); } $ok } };},"compiled_coercion" => sub ($) { package Eval::TypeTiny::Sandbox; use strict; do { package Type::Tiny; Ref::Util::XS::is_plain_hashref($_[0]) and do { my $ok = 1; foreach my $v (values %{$_[0];}) { $ok = 0, last unless Type::Tiny::XS::Bool($v); } foreach my $k (keys %{$_[0];}) { $ok = 0, last unless defined $k and not ref $k and not !($k =~ qr/(?^u:^[_a-zA-Z][_a-zA-Z0-9]*$)/); } $ok } } ? $_[0] : (Ref::Util::XS::is_plain_hashref($_[0]) ? scalar do { local $_ = $_[0]; do { my($orig, $return_orig, %new) = ($_, 0); foreach $_ (keys %$orig) { ++$return_orig and last unless defined $_ and not ref $_ and not !($_ =~ qr/(?^u:^[_a-zA-Z][_a-zA-Z0-9]*$)/); ++$return_orig and last unless Type::Tiny::XS::AUTO::TC18($orig->{$_}); $new{$_} = do { package Type::Tiny; Type::Tiny::XS::Bool($orig->{$_}) } ? $orig->{$_} : scalar do { local $_ = $orig->{$_}; not !$_ }; } $return_orig ? $orig : \%new } } : $_[0]);},"display_name" => "__ANON__","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [bless( {"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; Ref::Util::XS::is_plain_hashref($_[0]) or _failed_check(26, 'Map', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Map","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"coercion_generator" => sub { package Types::Standard::Map; no warnings; use strict; my($parent, $child, $kparam, $vparam) = @_; return unless $kparam->has_coercion or $vparam->has_coercion; my $kcoercable_item = $kparam->has_coercion ? $kparam->coercion->_source_type_union : $kparam; my $vcoercable_item = $vparam->has_coercion ? $vparam->coercion->_source_type_union : $vparam; my $C = 'Type::Coercion'->new('type_constraint', $child); if (!$kparam->has_coercion || $kparam->coercion->can_be_inlined and !$vparam->has_coercion || $vparam->coercion->can_be_inlined and $kcoercable_item->can_be_inlined and $vcoercable_item->can_be_inlined) { $C->add_type_coercions($parent, &Types::Standard::Stringable(sub { my @code; push @code, 'do { my ($orig, $return_orig, %new) = ($_, 0);'; push @code, 'for (keys %$orig) {'; push @code, sprintf('++$return_orig && last unless (%s);', $kcoercable_item->inline_check('$_')); push @code, sprintf('++$return_orig && last unless (%s);', $vcoercable_item->inline_check('$orig->{$_}')); push @code, sprintf('$new{(%s)} = (%s);', $kparam->has_coercion ? $kparam->coercion->inline_coercion('$_') : '$_', $vparam->has_coercion ? $vparam->coercion->inline_coercion('$orig->{$_}') : '$orig->{$_}'); push @code, '}'; push @code, '$return_orig ? $orig : \\%new'; push @code, '}'; join $", @code; } )); } else { $C->add_type_coercions($parent, sub { my $value = @_ ? $_[0] : $_; my %new; foreach my $k (keys %$value) { return $value unless $kcoercable_item->check($k) and $vcoercable_item->check($value->{$k}); $new{$kparam->has_coercion ? $kparam->coerce($k) : $k} = $vparam->has_coercion ? $vparam->coerce($value->{$k}) : $value->{$k}; } return \%new; } ); } return $C;},"compiled_type_constraint" => do{my $o},"constraint" => sub { package Type::Tiny; use warnings; use strict; !0;},"constraint_generator" => sub { package Types::Standard::Map; no warnings; use strict; return $meta->get_type('Map') unless @_; Type::Tiny::check_parameter_count_for_parameterized_type('Types::Standard', 'Map', \@_, 2, 2); my($keys, $values) = @_; Types::TypeTiny::is_TypeTiny($keys) or _croak "First parameter to Map[`k,`v] expected to be a type constraint; got $keys"; Types::TypeTiny::is_TypeTiny($values) or _croak "Second parameter to Map[`k,`v] expected to be a type constraint; got $values"; my @xsub; do { my(@known) = map({my $known = Type::Tiny::XS::is_known($_->compiled_check); defined $known ? $known : ();} $keys, $values); if (@known == 2) { my $xsub = Type::Tiny::XS::get_coderef_for(sprintf('Map[%s,%s]', @known)); push @xsub, $xsub if $xsub; } }; sub { my $hash = shift(); ($keys->check($_) or return) foreach (keys %$hash); ($values->check($_) or return) foreach (values %$hash); return !0; } , @xsub;},"deep_explanation" => sub { package Types::Standard::Map; no warnings; use strict; require B; my($type, $value, $varname) = @_; my($kparam, $vparam) = @{$type->parameters;}; foreach my $k (sort keys %$value) { unless ($kparam->check($k)) { return [sprintf('"%s" constrains each key in the hash with "%s"', $type, $kparam), @{$kparam->validate_explain($k, sprintf('key %s->{%s}', $varname, B::perlstring($k)));}]; } unless ($vparam->check($value->{$k})) { return [sprintf('"%s" constrains each value in the hash with "%s"', $type, $vparam), @{$vparam->validate_explain($value->{$k}, sprintf('%s->{%s}', $varname, B::perlstring($k)));}]; } } return;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 675,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Map","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard::Map; no warnings; use strict; my($k, $v) = @_; return unless $k->can_be_inlined and $v->can_be_inlined; my $xsubname; do { my(@known) = map({my $known = Type::Tiny::XS::is_known($_->compiled_check); defined $known ? $known : ();} $k, $v); if (@known == 2) { $xsubname = Type::Tiny::XS::get_subname_for(sprintf('Map[%s,%s]', @known)); } }; return sub { my $h = $_[1]; return "$xsubname($h)" if $xsubname and not $Type::Tiny::AvoidCallbacks; my $p = &Types::Standard::HashRef()->inline_check($h); my $k_check = $k->inline_check('$k'); my $v_check = $v->inline_check('$v'); "$p and do { " . 'my $ok = 1; ' . "for my \$v (values %{$h}) { " . "(\$ok = 0, last) unless $v_check " . '}; ' . "for my \$k (keys %{$h}) { " . "(\$ok = 0, last) unless $k_check " . '}; ' . '$ok ' . '}'; } ;},"library" => "Types::Standard","my_methods" => {"hashref_allows_key" => sub { package Types::Standard::Map; no warnings; use strict; my $self = shift(); my($key) = @_; return Types::Standard::is_Str($key) if $self == &Types::Standard::Map(); my $map = $self->find_parent(sub { $_->has_parent and $_->parent == &Types::Standard::Map(); } ); my($kcheck, $vcheck) = @{$map->parameters;}; ($kcheck || &Types::Standard::Any())->check($key);},"hashref_allows_value" => sub { package Types::Standard::Map; no warnings; use strict; my $self = shift(); my($key, $value) = @_; return !1 unless $self->my_hashref_allows_key($key); return !0 if $self == &Types::Standard::Map(); my $map = $self->find_parent(sub { $_->has_parent and $_->parent == &Types::Standard::Map(); } ); my($kcheck, $vcheck) = @{$map->parameters;}; ($kcheck || &Types::Standard::Any())->check($key) and ($vcheck || &Types::Standard::Any())->check($value);}},"name" => "Map","name_generator" => sub { package Type::Tiny; use warnings; use strict; defined $_ and s/[\x00-\x1F]//gms foreach (my($s, @a) = @_); sprintf '%s[%s]', $s, join(',', map((!defined($_) ? 'undef' : (!ref($_) && /\W/ ? B::perlstring($_) : $_)), @a));},"parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Sub::Defer; use warnings; use strict; $undeferred ||= undefer_sub($deferred_info->[4]); goto \&$undeferred;},"_overload_coderef_no_rebuild" => 1,"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_HashRef","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"coercion_generator" => sub { package Types::Standard::HashRef; no warnings; use strict; my($parent, $child, $param) = @_; return unless $param->has_coercion; my $coercable_item = $param->coercion->_source_type_union; my $C = 'Type::Coercion'->new('type_constraint', $child); if ($param->coercion->can_be_inlined and $coercable_item->can_be_inlined) { $C->add_type_coercions($parent, &Types::Standard::Stringable(sub { my @code; push @code, 'do { my ($orig, $return_orig, %new) = ($_, 0);'; push @code, 'for (keys %$orig) {'; push @code, sprintf('$return_orig++ && last unless (%s);', $coercable_item->inline_check('$orig->{$_}')); push @code, sprintf('$new{$_} = (%s);', $param->coercion->inline_coercion('$orig->{$_}')); push @code, '}'; push @code, '$return_orig ? $orig : \\%new'; push @code, '}'; join $", @code; } )); } else { $C->add_type_coercions($parent, sub { my $value = @_ ? $_[0] : $_; my %new; foreach my $k (keys %$value) { return $value unless $coercable_item->check($value->{$k}); $new{$k} = $param->coerce($value->{$k}); } return \%new; } ); } return $C;},"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; ref $_ eq 'HASH';},"constraint_generator" => sub { package Types::Standard::HashRef; no warnings; use strict; return &Types::Standard::HashRef() unless @_; require Error::TypeTiny::WrongNumberOfParameters; Type::Tiny::check_parameter_count_for_parameterized_type('Types::Standard', 'HashRef', \@_, 1); my $param = shift(); Types::TypeTiny::is_TypeTiny($param) or _croak "Parameter to HashRef[`a] expected to be a type constraint; got $param"; my $param_compiled_check = $param->compiled_check; my $xsub; do { my $paramname = Type::Tiny::XS::is_known($param_compiled_check); $xsub = Type::Tiny::XS::get_coderef_for("HashRef[$paramname]") if $paramname }; return sub { my $hash = shift(); ($param->check($_) or return) foreach (values %$hash); return !0; } , $xsub;},"deep_explanation" => sub { package Types::Standard::HashRef; no warnings; use strict; require B; my($type, $value, $varname) = @_; my $param = $type->parameters->[0]; foreach my $k (sort keys %$value) { my $item = $value->{$k}; next if $param->check($item); return [sprintf('"%s" constrains each value in the hash with "%s"', $type, $param), @{$param->validate_explain($item, sprintf('%s->{%s}', $varname, B::perlstring($k)));}]; } return;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 544,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "HashRef","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard::HashRef; no warnings; use strict; my $param = shift(); my $compiled = $param->compiled_check; my $xsubname; unless ($Type::Tiny::AvoidCallbacks) { my $paramname = Type::Tiny::XS::is_known($compiled); $xsubname = Type::Tiny::XS::get_subname_for("HashRef[$paramname]"); } return unless $param->can_be_inlined; return sub { my $v = $_[1]; return "$xsubname($v)" if $xsubname and not $Type::Tiny::AvoidCallbacks; my $p = &Types::Standard::HashRef()->inline_check($v); my $param_check = $param->inline_check('$i'); "$p and do { " . 'my $ok = 1; ' . "for my \$i (values %{$v}) { " . "(\$ok = 0, last) unless $param_check " . '}; ' . '$ok ' . '}'; } ;},"inlined" => sub { package Types::Standard; no warnings; use strict; !$Type::Tiny::AvoidCallbacks ? "Ref::Util::XS::is_plain_hashref($_[1])" : "ref($_[1]) eq 'HASH'";},"library" => "Types::Standard","my_methods" => {"hashref_allows_key" => sub { package Types::Standard::HashRef; no warnings; use strict; my $self = shift(); Types::Standard::is_Str($_[0]);},"hashref_allows_value" => sub { package Types::Standard::HashRef; no warnings; use strict; my $self = shift(); my($key, $value) = @_; return !1 unless $self->my_hashref_allows_key($key); return !0 if $self == &Types::Standard::HashRef(); my $href = $self->find_parent(sub { $_->has_parent and $_->parent == &Types::Standard::HashRef(); } ); my $param = $href->type_parameter; Types::Standard::is_Str($key) and $param->check($value);}},"name" => "HashRef","name_generator" => sub { package Type::Tiny; use warnings; use strict; defined $_ and s/[\x00-\x1F]//gms foreach (my($s, @a) = @_); sprintf '%s[%s]', $s, join(',', map((!defined($_) ? 'undef' : (!ref($_) && /\W/ ? B::perlstring($_) : $_)), @a));},"parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; not ref $_[0] and _failed_check(16, 'Ref', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Ref","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; ref $_;},"constraint_generator" => sub { package Types::Standard; no warnings; use strict; return $meta->get_type('Ref') unless @_; Type::Tiny::check_parameter_count_for_parameterized_type('Types::Standard', 'Ref', \@_, 1); my $reftype = shift(); $reftype =~ /^(SCALAR|ARRAY|HASH|CODE|REF|GLOB|LVALUE|FORMAT|IO|VSTRING|REGEXP|Regexp)$/i or _croak "Parameter to Ref[`a] expected to be a Perl ref type; got $reftype"; $reftype = "$reftype"; return sub { ref $_[0] and builtin::reftype($_[0]) eq $reftype; } ;},"deep_explanation" => sub { package Types::Standard; no warnings; use strict; require B; my($type, $value, $varname) = @_; my $param = $type->parameters->[0]; return if $type->check($value); my $reftype = builtin::reftype($value); return [sprintf('"%s" constrains reftype(%s) to be equal to %s', $type, $varname, B::perlstring($param)), sprintf('reftype(%s) is %s', $varname, defined $reftype ? B::perlstring($reftype) : 'undef')];},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 438,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Ref","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard; no warnings; use strict; my $reftype = shift(); return sub { my $v = $_[1]; &$maybe_load_modules('Scalar::Util', "ref($v) and Scalar::Util::reftype($v) eq q($reftype)"); } ;},"inlined" => sub { package Types::Standard; no warnings; use strict; "!!ref($_[1])";},"library" => "Types::Standard","name" => "Ref","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; defined $_[0] or _failed_check(7, 'Defined', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Defined","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complementary_type" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; defined $_[0] and _failed_check(6, 'Undef', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Undef","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complementary_type" => {},"constraint" => sub { package Types::Standard; no warnings; use strict; not defined $_;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 254,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Undef","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; "!defined($_[1])";},"library" => "Types::Standard","name" => "Undef","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; '???'; $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Item","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => do{my $o},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 226,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Item","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; '!!1';},"library" => "Types::Standard","name" => "Item","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Sub::Defer; use warnings; use strict; $undeferred ||= undefer_sub($deferred_info->[4]); goto \&$undeferred;},"_overload_coderef_no_rebuild" => 1,"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => do{my $o},"display_name" => "to_Any","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"complement_name" => "None","constraint" => do{my $o},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 220,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Any","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; '!!1';},"library" => "Types::Standard","name" => "Any","type_default" => sub { package Types::Standard; no warnings; use strict; return undef;},"uniq" => 1}, 'Type::Tiny' ),"uniq" => 2}, 'Type::Tiny' ),"type_default" => sub { package Types::Standard; no warnings; use strict; return undef;},"uniq" => 6}, 'Type::Tiny' ),"constraint" => sub { package Types::Standard; no warnings; use strict; defined $_;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 262,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Defined","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; "defined($_[1])";},"library" => "Types::Standard","name" => "Defined","parent" => {},"uniq" => 7}, 'Type::Tiny' ),"uniq" => 16}, 'Type::Tiny' ),"type_default" => sub { package Types::Standard; no warnings; use strict; return {};},"type_default_generator" => sub { package Types::Standard; no warnings; use strict; return $Type::Tiny::parameterize_type->type_default if @_ < 2; return undef;},"uniq" => 22}, 'Type::Tiny' ),"type_default_generator" => sub { package Types::Standard; no warnings; use strict; return $Type::Tiny::parameterize_type->type_default;},"uniq" => 26}, 'Type::Tiny' ),bless( {"code" => sub { package Types::Standard::Map; no warnings; use strict; my @code; push @code, 'do { my ($orig, $return_orig, %new) = ($_, 0);'; push @code, 'for (keys %$orig) {'; push @code, sprintf('++$return_orig && last unless (%s);', $kcoercable_item->inline_check('$_')); push @code, sprintf('++$return_orig && last unless (%s);', $vcoercable_item->inline_check('$orig->{$_}')); push @code, sprintf('$new{(%s)} = (%s);', $kparam->has_coercion ? $kparam->coercion->inline_coercion('$_') : '$_', $vparam->has_coercion ? $vparam->coercion->inline_coercion('$orig->{$_}') : '$orig->{$_}'); push @code, '}'; push @code, '$return_orig ? $orig : \\%new'; push @code, '}'; join $", @code;},"text" => "do { my (\$orig, \$return_orig, %new) = (\$_, 0); for (keys %\$orig) { ++\$return_orig && last unless ((defined(\$_) and !ref(\$_) and !!( \$_ =~ qr/(?^u:^[_a-zA-Z][_a-zA-Z0-9]*\$)/ ))); ++\$return_orig && last unless (Type::Tiny::XS::AUTO::TC18(\$orig->{\$_})); \$new{(\$_)} = ((do { package Type::Tiny; Type::Tiny::XS::Bool(\$orig->{\$_}) }) ? \$orig->{\$_} : ((!!1)) ? scalar(do { local \$_ = \$orig->{\$_}; !!\$_ }) : \$orig->{\$_}); } \$return_orig ? \$orig : \\%new }"}, 'Types::Standard::_Stringable' )],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard::Map; no warnings; use strict; my $hash = shift(); ($keys->check($_) or return) foreach (keys %$hash); ($values->check($_) or return) foreach (values %$hash); return !0;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/x86_64-linux/Function/Parameters.pm","line" => 98,"package" => "Function::Parameters"},"deprecated" => !!0,"display_name" => "Map[StrNameValid,Bool]","inlined" => sub { package Types::Standard::Map; no warnings; use strict; my $h = $_[1]; return "$xsubname($h)" if $xsubname and not $Type::Tiny::AvoidCallbacks; my $p = &Types::Standard::HashRef()->inline_check($h); my $k_check = $k->inline_check('$k'); my $v_check = $v->inline_check('$v'); "$p and do { " . 'my $ok = 1; ' . "for my \$v (values %{$h}) { " . "(\$ok = 0, last) unless $v_check " . '}; ' . "for my \$k (keys %{$h}) { " . "(\$ok = 0, last) unless $k_check " . '}; ' . '$ok ' . '}';},"name" => "__ANON__","parameters" => [bless( {"_overload_coderef" => sub { package Sub::Defer; use warnings; use strict; $undeferred ||= undefer_sub($deferred_info->[4]); goto \&$undeferred;},"_overload_coderef_no_rebuild" => 1,"_overrides_assert_return" => !!0,"compiled_type_constraint" => sub ($) { package Eval::TypeTiny::Sandbox; use strict; defined $_[0] and not ref $_[0] and not !($_[0] =~ qr/(?^u:^[_a-zA-Z][_a-zA-Z0-9]*$)/);},"constraint" => do{my $o},"definition_context" => {"file" => "/home/cpancover/.cpan/build/GraphQL-0.54-0/blib/lib/GraphQL/Type/Library.pm","line" => 42,"package" => "GraphQL::Type::Library"},"deprecated" => !!0,"display_name" => "StrNameValid","exception_class" => "Error::TypeTiny::Assertion","library" => "GraphQL::Type::Library","name" => "StrNameValid","parent" => bless( {"coercion" => bless( {"_compiled_type_constraint_check" => do{my $o},"frozen" => 1,"name" => "__ANON__","type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard::StrMatch; no warnings; use strict; my $value = shift(); defined $value and not ref $value and not !($value =~ /$regexp/);},"definition_context" => {"file" => "/home/cpancover/.cpan/build/GraphQL-0.54-0/blib/lib/GraphQL/Type/Library.pm","line" => 42,"package" => "GraphQL::Type::Library"},"deprecated" => !!0,"display_name" => "StrMatch[(?^u:^[_a-zA-Z][_a-zA-Z0-9]*\$)]","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard::StrMatch; no warnings; use strict; my $v = $_[1]; if ($Type::Tiny::AvoidCallbacks and $serialized_re =~ /Types::Standard::StrMatch::expressions/) { require Carp; Carp::carp('Cannot serialize regexp without callbacks; serializing using callbacks'); } "defined($v) and !ref($v) and !!( $v =~ $serialized_re )";},"name" => "__ANON__","parameters" => [qr/^[_a-zA-Z][_a-zA-Z0-9]*$/u],"parent" => bless( {"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; Type::Tiny::XS::Str($_[0]) or _failed_check(33, 'StrMatch', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_StrMatch","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => do{my $o},"constraint_generator" => sub { package Types::Standard::StrMatch; no warnings; use strict; return 'Types::Standard'->meta->get_type('StrMatch') unless @_; Type::Tiny::check_parameter_count_for_parameterized_type('Types::Standard', 'StrMatch', \@_, 2, 1); my($regexp, $checker) = @_; &Types::Standard::is_RegexpRef($regexp) or _croak "First parameter to StrMatch[`a] expected to be a Regexp; got $regexp"; if (@_ > 1) { $checker = Types::TypeTiny::to_TypeTiny($checker); Types::TypeTiny::is_TypeTiny($checker) or _croak "Second parameter to StrMatch[`a] expected to be a type constraint; got $checker"; } $checker ? sub { my $value = shift(); return unless defined $value; return if ref $value; my(@m) = $value =~ /$regexp/; $checker->check(\@m); } : sub { my $value = shift(); defined $value and not ref $value and not !($value =~ /$regexp/); } ;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 902,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "StrMatch","exception_class" => "Error::TypeTiny::Assertion","inline_generator" => sub { package Types::Standard::StrMatch; no warnings; use strict; require B; my($regexp, $checker) = @_; my $serialized_re = $regexp->$serialize_regexp or return; if ($checker) { return unless $checker->can_be_inlined; return sub { my $v = $_[1]; if ($Type::Tiny::AvoidCallbacks and $serialized_re =~ /Types::Standard::StrMatch::expressions/) { require Carp; Carp::carp('Cannot serialize regexp without callbacks; serializing using callbacks'); } sprintf "defined($v) and !ref($v) and do { my \$m = [$v =~ %s]; %s }", $serialized_re, $checker->inline_check('$m'); } ; } else { my $regexp_string = "$regexp"; if ($regexp_string =~ /\A\(\?\^u?:\\A(\.+)\)\z/) { my $length = length $1; return sub { "defined($_) and !ref($_) and length($_)>=$length"; } ; } if ($regexp_string =~ /\A\(\?\^u?:\\A(\.+)\\z\)\z/) { my $length = length $1; return sub { "defined($_) and !ref($_) and length($_)==$length"; } ; } return sub { my $v = $_[1]; if ($Type::Tiny::AvoidCallbacks and $serialized_re =~ /Types::Standard::StrMatch::expressions/) { require Carp; Carp::carp('Cannot serialize regexp without callbacks; serializing using callbacks'); } "defined($v) and !ref($v) and !!( $v =~ $serialized_re )"; } ; }},"library" => "Types::Standard","name" => "StrMatch","name_generator" => sub { package Type::Tiny; use warnings; use strict; defined $_ and s/[\x00-\x1F]//gms foreach (my($s, @a) = @_); sprintf '%s[%s]', $s, join(',', map((!defined($_) ? 'undef' : (!ref($_) && /\W/ ? B::perlstring($_) : $_)), @a));},"parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Sub::Defer; use warnings; use strict; $undeferred ||= undefer_sub($deferred_info->[4]); goto \&$undeferred;},"_overload_coderef_no_rebuild" => 1,"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => do{my $o},"display_name" => "to_Str","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; ref \$_ eq 'SCALAR' or ref \(my $val = $_) eq 'SCALAR';},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 291,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Str","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; use warnings; use strict; $Type::Tiny::AvoidCallbacks ? goto $orig_inlined : "$xsubname($_[1])";},"library" => "Types::Standard","name" => "Str","parent" => bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; defined $_[0] and not ref $_[0] or _failed_check(8, 'Value', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"display_name" => "to_Value","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; not ref $_;},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 276,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Value","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; no warnings; use strict; "defined($_[1]) and not ref($_[1])";},"library" => "Types::Standard","name" => "Value","parent" => {},"uniq" => 8}, 'Type::Tiny' ),"sorter" => sub { package Types::Standard; no warnings; use strict; $_[0] cmp $_[1];},"type_default" => sub { package Types::Standard; no warnings; use strict; return '';},"uniq" => 9}, 'Type::Tiny' ),"uniq" => 33}, 'Type::Tiny' ),"uniq" => 40}, 'Type::Tiny' ),"uniq" => 41}, 'Type::Tiny' ),bless( {"_is_core" => 1,"_overload_coderef" => sub { package Type::Tiny; BEGIN {${^WARNING_BITS} = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01\x00"} use strict; Type::Tiny::XS::Bool($_[0]) or _failed_check(3, 'Bool', $_[0], 'exception_class', 'Error::TypeTiny::Assertion'); $_[0];},"_overrides_assert_return" => !!0,"coercion" => bless( {"_compiled_type_constraint_check" => sub ;,"compiled_coercion" => sub ($) { package Eval::TypeTiny::Sandbox; use strict; Type::Tiny::XS::Bool($_[0]) ? $_[0] : scalar do { local $_ = $_[0]; not !$_ };},"display_name" => "to_Bool","frozen" => 1,"name" => "__ANON__","type_coercion_map" => [{},"!!\$_"],"type_constraint" => {}}, 'Type::Coercion' ),"compiled_type_constraint" => do{my $o},"constraint" => sub { package Types::Standard; no warnings; use strict; not ref $_ and !defined($_) || $_ eq '' || $_ eq '0' || $_ eq '1';},"definition_context" => {"file" => "/usr/local/lib/perl5/site_perl/5.44.0/Types/Standard.pm","line" => 242,"package" => "Types::Standard"},"deprecated" => !!0,"display_name" => "Bool","exception_class" => "Error::TypeTiny::Assertion","inlined" => sub { package Types::Standard; use warnings; use strict; $Type::Tiny::AvoidCallbacks ? goto $orig_inlined : "$xsubname($_[1])";},"library" => "Types::Standard","name" => "Bool","parent" => {},"type_default" => sub { package Types::Standard; no warnings; use strict; return !1;},"uniq" => 3}, 'Type::Tiny' )],"parent" => {},"type_default" => do{my $o},"uniq" => 120}, 'Type::Tiny' );$v->{"coercion"}{"type_coercion_map"}[0]{"coercion"}{"type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0];$v->{"coercion"}{"type_coercion_map"}[0]{"compiled_type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"coercion"}{"_compiled_type_constraint_check"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"coercion"}{"type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"compiled_type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"coercion"}{"type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"compiled_type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"complementary_type"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"compiled_type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"constraint"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"}{"constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"constraint"};$v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"parent"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"};$v->{"coercion"}{"type_constraint"} = $v;$v->{"compiled_type_constraint"} = $v->{"coercion"}{"_compiled_type_constraint_check"};$v->{"parameters"}[0]{"constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"constraint"};$v->{"parameters"}[0]{"parent"}{"coercion"}{"_compiled_type_constraint_check"} = $v->{"parameters"}[0]{"compiled_type_constraint"};$v->{"parameters"}[0]{"parent"}{"coercion"}{"type_constraint"} = $v->{"parameters"}[0]{"parent"};$v->{"parameters"}[0]{"parent"}{"compiled_type_constraint"} = $v->{"parameters"}[0]{"compiled_type_constraint"};$v->{"parameters"}[0]{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parameters"}[0]{"parent"}{"parent"};$v->{"parameters"}[0]{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parameters"}[0]{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parameters"}[0]{"parent"}{"parent"}{"constraint"} = $v->{"coercion"}{"type_coercion_map"}[0]{"constraint"};$v->{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"} = $v->{"parameters"}[0]{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parameters"}[0]{"parent"}{"parent"}{"parent"};$v->{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parameters"}[0]{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"coercion"}{"type_constraint"} = $v->{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"};$v->{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"compiled_type_constraint"} = $v->{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"coercion"}{"_compiled_type_constraint_check"};$v->{"parameters"}[0]{"parent"}{"parent"}{"parent"}{"parent"}{"parent"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"};$v->{"parameters"}[1]{"coercion"}{"type_coercion_map"}[0] = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"}{"parent"};$v->{"parameters"}[1]{"coercion"}{"type_constraint"} = $v->{"parameters"}[1];$v->{"parameters"}[1]{"compiled_type_constraint"} = $v->{"parameters"}[1]{"coercion"}{"_compiled_type_constraint_check"};$v->{"parameters"}[1]{"parent"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"parent"}{"parent"}{"complementary_type"}{"parent"};$v->{"parent"} = $v->{"coercion"}{"type_coercion_map"}[0];$v->{"type_default"} = $v->{"coercion"}{"type_coercion_map"}[0]{"parent"}{"type_default"}; \$v}->get_message($visited_fragments)) |
0 |
333 |
333 |
|