ClassFile/BNF/TypeParameterTarget.pm

filter: Statementstmt 78.9% 15 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 55.5% 5 / 9 Podpod n/a totaltotal 71.4% 20 / 28 SCAR 0.1
CC
1
Cov
79%
grammar
2.0
__ANON__
2.0
callbacks
2.0
CRAP 1.0
« ClassFile/BNF/TypeParameterBoundTarget.pm ↑ Summary ClassFile/BNF/AppendFrame.pm »
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package MarpaX::Java::ClassFile::BNF::TypeParameterTarget;
5 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 # ABSTRACT: Parsing of a type_parameter_target
8  
9 our $VERSION = '0.008'; # VERSION
10  
11 our $AUTHORITY = 'cpan:JDDPAUSE'; # AUTHORITY
12  
13 1 ▶use Data::Section -setup;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use MarpaX::Java::ClassFile::Util::BNF qw/:all/;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 #
16 # require because we do not import ANYTHING from these module, just require they are loaded
17 #
18 require Marpa::R2;
19 require MarpaX::Java::ClassFile::Struct::TypeParameterTarget;
20  
21 my $_data = ${ __PACKAGE__->section_data('bnf') };
22 my $_grammar = Marpa::R2::Scanless::G->new( { source => \__PACKAGE__->bnf($_data) } );
23  
24 # --------------------------------------------------------
25 # What role MarpaX::Java::ClassFile::Role::Parser requires
26 # --------------------------------------------------------
27 0 ▶sub grammar { $_grammar }
Subroutine grammar: not called CC=1 SCAR=6.9
28 0 ▶sub callbacks { return { "'exhausted" => sub { $_[0]->exhausted } } }
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine callbacks: not called CC=1 SCAR=6.9
29  
30 # ---------------
31 # Grammar actions
32 # ---------------
33 sub _TypeParameterTarget {
34 # my ($self, $type_parameter_index) = @_;
35  
36 0 ▶ MarpaX::Java::ClassFile::Struct::TypeParameterTarget->new(
Subroutine _TypeParameterTarget: not called CC=1 SCAR=6.9
37 type_parameter_index => $_[1]
38 )
39 }
40  
41 with 'MarpaX::Java::ClassFile::Role::Parser';
42  
43 1;
44  
45 =pod
46  
47 =encoding UTF-8
48  
49 =head1 NAME
50  
51 MarpaX::Java::ClassFile::BNF::TypeParameterTarget - Parsing of a type_parameter_target
52  
53 =head1 VERSION
54  
55 version 0.008
56  
57 =head1 AUTHOR
58  
59 Jean-Damien Durand <jeandamiendurand@free.fr>
60  
61 =head1 COPYRIGHT AND LICENSE
62  
63 This software is copyright (c) 2016 by Jean-Damien Durand.
64  
65 This is free software; you can redistribute it and/or modify it under
66 the same terms as the Perl 5 programming language system itself.
67  
68 =cut
69  
70 __DATA__
71 __[ bnf ]__
72 typeParameterTarget ::= type_parameter_index action => _TypeParameterTarget
73 type_parameter_index ::= U1 action => u1
« ClassFile/BNF/TypeParameterBoundTarget.pm ↑ Summary ClassFile/BNF/AppendFrame.pm »