line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Copyrights 2003-2021 by [Mark Overmeer]. |
2
|
|
|
|
|
|
|
# For other contributors see ChangeLog. |
3
|
|
|
|
|
|
|
# See the manual pages for details on the licensing terms. |
4
|
|
|
|
|
|
|
# Pod stripped from pm file by OODoc 2.02. |
5
|
|
|
|
|
|
|
# This code is part of perl distribution OODoc. It is licensed under the |
6
|
|
|
|
|
|
|
# same terms as Perl itself: https://spdx.org/licenses/Artistic-2.0.html |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
package OODoc::Text::Default; |
9
|
1
|
|
|
1
|
|
900
|
use vars '$VERSION'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
50
|
|
10
|
|
|
|
|
|
|
$VERSION = '2.02'; |
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
1
|
|
6
|
use base 'OODoc::Text'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
478
|
|
13
|
|
|
|
|
|
|
|
14
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
14
|
|
|
1
|
|
|
|
|
21
|
|
15
|
1
|
|
|
1
|
|
30
|
use warnings; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
71
|
|
16
|
|
|
|
|
|
|
|
17
|
1
|
|
|
1
|
|
6
|
use Log::Report 'oodoc'; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
16
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub init($) |
21
|
0
|
|
|
0
|
0
|
|
{ my ($self, $args) = @_; |
22
|
0
|
|
0
|
|
|
|
$args->{type} ||= 'Default'; |
23
|
0
|
0
|
|
|
|
|
$args->{container} = delete $args->{subroutine} or panic; |
24
|
|
|
|
|
|
|
|
25
|
0
|
0
|
|
|
|
|
$self->SUPER::init($args) |
26
|
|
|
|
|
|
|
or return; |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
|
|
|
$self->{OTD_value} = delete $args->{value}; |
29
|
0
|
0
|
|
|
|
|
defined $self->{OTD_value} or panic; |
30
|
|
|
|
|
|
|
|
31
|
0
|
|
|
|
|
|
$self; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
#------------------------------------------- |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
0
|
|
|
0
|
1
|
|
sub subroutine() { shift->container } |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
|
40
|
0
|
|
|
0
|
1
|
|
sub value() { shift->{OTD_value} } |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |