line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Perl::ToPerl6::Exception::Configuration::Option::Transformer; |
2
|
|
|
|
|
|
|
|
3
|
25
|
|
|
25
|
|
16795
|
use 5.006001; |
|
25
|
|
|
|
|
74
|
|
4
|
25
|
|
|
25
|
|
110
|
use strict; |
|
25
|
|
|
|
|
36
|
|
|
25
|
|
|
|
|
521
|
|
5
|
25
|
|
|
25
|
|
94
|
use warnings; |
|
25
|
|
|
|
|
32
|
|
|
25
|
|
|
|
|
760
|
|
6
|
|
|
|
|
|
|
|
7
|
25
|
|
|
25
|
|
107
|
use Perl::ToPerl6::Utils qw{ &transformer_short_name }; |
|
25
|
|
|
|
|
579
|
|
|
25
|
|
|
|
|
3260
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.031'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
#----------------------------------------------------------------------------- |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
use Exception::Class ( |
14
|
25
|
|
|
|
|
272
|
'Perl::ToPerl6::Exception::Configuration::Option::Transformer' => { |
15
|
|
|
|
|
|
|
isa => 'Perl::ToPerl6::Exception::Configuration::Option', |
16
|
|
|
|
|
|
|
description => 'A problem with the configuration of a transformer.', |
17
|
|
|
|
|
|
|
fields => [ qw{ transformer } ], |
18
|
|
|
|
|
|
|
}, |
19
|
25
|
|
|
25
|
|
142
|
); |
|
25
|
|
|
|
|
35
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
#----------------------------------------------------------------------------- |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub new { |
24
|
49
|
|
|
49
|
1
|
19454
|
my ($class, %options) = @_; |
25
|
|
|
|
|
|
|
|
26
|
49
|
|
|
|
|
85
|
my $transformer = $options{transformer}; |
27
|
49
|
100
|
|
|
|
123
|
if ($transformer) { |
28
|
47
|
|
|
|
|
123
|
$options{transformer} = transformer_short_name($transformer); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
49
|
|
|
|
|
245
|
return $class->SUPER::new(%options); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
#----------------------------------------------------------------------------- |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=pod |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=for stopwords |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 NAME |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Perl::ToPerl6::Exception::Configuration::Option::Enforcer - A problem with configuration of a transformer. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 DESCRIPTION |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
A representation of a problem found with the configuration of a |
52
|
|
|
|
|
|
|
L<Perl::ToPerl6::Enforcer|Perl::ToPerl6::Enforcer>, whether from a |
53
|
|
|
|
|
|
|
F<.perlmogrifyrc>, another profile file, or command line. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
This is an abstract class. It should never be instantiated. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 INTERFACE SUPPORT |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
This is considered to be a public class. Any changes to its interface |
61
|
|
|
|
|
|
|
will go through a deprecation cycle. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 METHODS |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=over |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=item C<transformer()> |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
The short name of the transformer that had configuration problems. |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=back |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 AUTHOR |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
Elliot Shank <perl@galumph.com> |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=head1 COPYRIGHT |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
Copyright (c) 2007-2011 Elliot Shank. |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify |
85
|
|
|
|
|
|
|
it under the same terms as Perl itself. The full text of this license |
86
|
|
|
|
|
|
|
can be found in the LICENSE file included with this module. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=cut |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
# Local Variables: |
91
|
|
|
|
|
|
|
# mode: cperl |
92
|
|
|
|
|
|
|
# cperl-indent-level: 4 |
93
|
|
|
|
|
|
|
# fill-column: 78 |
94
|
|
|
|
|
|
|
# indent-tabs-mode: nil |
95
|
|
|
|
|
|
|
# c-indentation-style: bsd |
96
|
|
|
|
|
|
|
# End: |
97
|
|
|
|
|
|
|
# ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround : |