| 1 | 1 | ▶ | use strictures 1; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | |||||||||||
| 3 | # ABSTRACT: Version 1 of bundled syntax enhancements | ||||||||||
| 4 | |||||||||||
| 5 | package Syntax::Feature::Simple::V1; | ||||||||||
| 6 | { | ||||||||||
| 7 | 1 | $Syntax::Feature::Simple::V1::VERSION = '0.002'; | |||||||||
| 8 | } | ||||||||||
| 9 | 1 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 1 | $Syntax::Feature::Simple::V1::AUTHORITY = 'cpan:PHAYLON'; | |||||||||
| 11 | } | ||||||||||
| 12 | |||||||||||
| 13 | 1 | ▶ | use parent 'Syntax::Feature::Simple'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | 1 | ▶ | use syntax qw( method ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 15 | |||||||||||
| 16 | 1 | ▶ | method _available_extensions { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
_available_extensions: called CC=1 SCAR=0.0
| |||||||||||
| 17 | 1 | return qw( | |||||||||
| 18 | function_keyword | ||||||||||
| 19 | moose_param_role_method_sugar | ||||||||||
| 20 | method_keyword | ||||||||||
| 21 | modifier_sugar | ||||||||||
| 22 | ); | ||||||||||
| 23 | 1 | } | |||||||||
| 24 | |||||||||||
| 25 | 1 | ▶ | method _can_setup_moose_param_role_method_sugar_ext ($class: $target) { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
_can_setup_moose_param_role_method_sugar_ext: called CC=1 SCAR=0.0
| |||||||||||
| 26 | 2 | $class->_check_is_moose_param_role($target) | |||||||||
| 27 | 1 | } | |||||||||
| 28 | |||||||||||
| 29 | 1 | ▶ | method _can_setup_method_keyword_ext ($class: $target) { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
__ANON__: called CC=2 SCAR=7.0
| |||||||||||
| 30 | 1 | ▶ | $class->_check_has_meta($target) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 31 | and not | ||||||||||
| 32 | $class->_check_is_moose_param_role($target) | ||||||||||
| 33 | 1 | } | |||||||||
| 34 | |||||||||||
| 35 | 1 | ▶ | method _can_setup_modifier_sugar_ext ($class: $target) { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
_can_setup_modifier_sugar_ext: called CC=1 SCAR=0.0
| |||||||||||
| 36 | 2 | $class->_check_has_meta($target) | |||||||||
| 37 | 1 | } | |||||||||
| 38 | |||||||||||
| 39 | 1 | 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<Moose> metaclass was detected. | ||||||||||
| 62 | |||||||||||
| 63 | =head1 SEE ALSO | ||||||||||
| 64 | |||||||||||
| 65 | =over | ||||||||||
| 66 | |||||||||||
| 67 | =item L<Syntax::Feature::Simple> | ||||||||||
| 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 <rs@474.at> | ||||||||||
| 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__ | ||||||||||