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