File Coverage

blib/lib/Syntax/Feature/Simple/V2.pm
Criterion Covered Total %
statement 24 24 100.0
branch n/a
condition n/a
subroutine 10 10 100.0
pod n/a
total 34 34 100.0


line stmt bran cond sub pod time code
1 1     1   1060 use strictures 1;
  1         12  
  1         27  
2              
3             # ABSTRACT: Version 2 of bundled syntax enhancements
4              
5             package Syntax::Feature::Simple::V2;
6             {
7             $Syntax::Feature::Simple::V2::VERSION = '0.002';
8             }
9             BEGIN {
10 1     1   115 $Syntax::Feature::Simple::V2::AUTHORITY = 'cpan:PHAYLON';
11             }
12              
13 1     1   4 use parent 'Syntax::Feature::Simple::V1';
  1         1  
  1         6  
14 1     1   53 use syntax qw( method );
  1         2  
  1         4  
15              
16 1     1   688 method _available_extensions {
  1     1   2  
  1         1  
17 1         4 return qw(
18             function_keyword
19             moose_param_role_method_sugar
20             method_keyword
21             modifier_sugar
22             moose_param_role_body_sugar
23             );
24             }
25              
26 1     1   365 method _can_setup_moose_param_role_body_sugar_ext ($class: $target) {
  1     1   2  
  1         2  
  1         1  
27 1         4 $class->_check_is_moose_param_role($target)
28             }
29              
30 1     1   356 method _can_setup_method_keyword_ext ($class: $target) {
  1     1   2  
  1         2  
  1         1  
31 1         4 not $class->_check_is_moose_param_role($target)
32             }
33              
34             1;
35              
36              
37              
38             =pod
39              
40             =head1 NAME
41              
42             Syntax::Feature::Simple::V2 - Version 2 of bundled syntax enhancements
43              
44             =head1 VERSION
45              
46             version 0.002
47              
48             =head1 SYNOPSIS
49              
50             use syntax qw( simple/v2 );
51              
52             =head1 DESCRIPTION
53              
54             This is the second version of the syntax dispatcher. It will setup a function
55             and a method keyword in all cases, and a set of method modifiers if any kind
56             of L metaclass was detected. For roles parameterized with
57             L it will also setup a C keyword for the
58             body.
59              
60             =head1 SEE ALSO
61              
62             =over
63              
64             =item L
65              
66             Main feature documentation.
67              
68             =back
69              
70             =head1 BUGS
71              
72             Please report any bugs or feature requests to bug-syntax-feature-simple@rt.cpan.org or through the web interface at:
73             http://rt.cpan.org/Public/Dist/Display.html?Name=Syntax-Feature-Simple
74              
75             =head1 AUTHOR
76              
77             Robert 'phaylon' Sedlacek
78              
79             =head1 COPYRIGHT AND LICENSE
80              
81             This software is copyright (c) 2011 by Robert 'phaylon' Sedlacek.
82              
83             This is free software; you can redistribute it and/or modify it under
84             the same terms as the Perl 5 programming language system itself.
85              
86             =cut
87              
88              
89             __END__