line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Role::TinyCommons::Tree::FromStruct; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY |
4
|
|
|
|
|
|
|
our $DATE = '2021-05-06'; # DATE |
5
|
|
|
|
|
|
|
our $DIST = 'Role-TinyCommons-Tree'; # DIST |
6
|
|
|
|
|
|
|
our $VERSION = '0.126'; # VERSION |
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
1754
|
use Role::Tiny; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
8
|
|
9
|
2
|
|
|
2
|
|
237
|
use Role::Tiny::With; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
99
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
with 'Role::TinyCommons::Tree::NodeMethods'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
BEGIN { |
14
|
2
|
|
|
2
|
|
12
|
no strict 'refs'; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
212
|
|
15
|
2
|
|
|
2
|
|
845
|
require Code::Includable::Tree::FromStruct; |
16
|
2
|
|
|
|
|
9
|
for (grep {/\A[a-z]\w+\z/} keys %Code::Includable::Tree::FromStruct::) { |
|
20
|
|
|
|
|
43
|
|
17
|
2
|
|
|
|
|
4
|
*{$_} = \&{"Code::Includable::Tree::FromStruct::$_"}; |
|
2
|
|
|
|
|
54
|
|
|
2
|
|
|
|
|
8
|
|
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |
22
|
|
|
|
|
|
|
# ABSTRACT: Role that provides methods to build tree object from data structure |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |