line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package OPM::Parser::Types; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# ABSTRACT: types for OPM::Parser |
4
|
|
|
|
|
|
|
|
5
|
9
|
|
|
9
|
|
106
|
use v5.24; |
|
9
|
|
|
|
|
23
|
|
6
|
|
|
|
|
|
|
|
7
|
9
|
|
|
9
|
|
43
|
use strict; |
|
9
|
|
|
|
|
15
|
|
|
9
|
|
|
|
|
199
|
|
8
|
9
|
|
|
9
|
|
42
|
use warnings; |
|
9
|
|
|
|
|
13
|
|
|
9
|
|
|
|
|
399
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '1.06'; # VERSION |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
use Type::Library |
13
|
9
|
|
|
|
|
75
|
-base, |
14
|
9
|
|
|
9
|
|
3223
|
; |
|
9
|
|
|
|
|
168846
|
|
15
|
|
|
|
|
|
|
|
16
|
9
|
|
|
9
|
|
5509
|
use Type::Utils -all; |
|
9
|
|
|
|
|
31953
|
|
|
9
|
|
|
|
|
68
|
|
17
|
9
|
|
|
9
|
|
25716
|
use Types::Standard -types; |
|
9
|
|
|
|
|
326854
|
|
|
9
|
|
|
|
|
79
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
Type::Utils::extends('Types::Standard'); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
declare VersionString => |
22
|
|
|
|
|
|
|
as Str, |
23
|
|
|
|
|
|
|
where { |
24
|
|
|
|
|
|
|
$_ =~ m{ \A (?:[0-9]+) (?:\.[0-9]+){0,2} (?:_\d+)? \z }xms |
25
|
|
|
|
|
|
|
}; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
declare FrameworkVersionString => |
28
|
|
|
|
|
|
|
as Str, |
29
|
|
|
|
|
|
|
where { |
30
|
|
|
|
|
|
|
$_ =~ m{ \A (?: (?:x|[0-9]+x?) \. ){1,2} (?: x | [0-9]+x? ) \z }xms |
31
|
|
|
|
|
|
|
}; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
declare XMLTree => |
34
|
|
|
|
|
|
|
as InstanceOf['XML::LibXML::Document']; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
__END__ |