line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
5
|
|
|
5
|
|
100
|
use 5.010001; |
|
5
|
|
|
|
|
33
|
|
2
|
5
|
|
|
5
|
|
28
|
use strict; |
|
5
|
|
|
|
|
23
|
|
|
5
|
|
|
|
|
108
|
|
3
|
5
|
|
|
5
|
|
24
|
use warnings; |
|
5
|
|
|
|
|
13
|
|
|
5
|
|
|
|
|
366
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Story::Interact::PageSource; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TOBYINK'; |
8
|
|
|
|
|
|
|
our $VERSION = '0.001014'; |
9
|
|
|
|
|
|
|
|
10
|
5
|
|
|
5
|
|
47
|
use Story::Interact::Page (); |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
125
|
|
11
|
5
|
|
|
5
|
|
2093
|
use Story::Interact::Syntax (); |
|
5
|
|
|
|
|
17
|
|
|
5
|
|
|
|
|
125
|
|
12
|
|
|
|
|
|
|
|
13
|
5
|
|
|
5
|
|
36
|
use Moo::Role; |
|
5
|
|
|
|
|
23
|
|
|
5
|
|
|
|
|
107
|
|
14
|
5
|
|
|
5
|
|
2583
|
use Types::Common -types; |
|
5
|
|
|
|
|
14
|
|
|
5
|
|
|
|
|
41
|
|
15
|
5
|
|
|
5
|
|
71151
|
use Carp qw( croak ); |
|
5
|
|
|
|
|
17
|
|
|
5
|
|
|
|
|
272
|
|
16
|
5
|
|
|
5
|
|
2768
|
use Safe (); |
|
5
|
|
|
|
|
83810
|
|
|
5
|
|
|
|
|
210
|
|
17
|
5
|
|
|
5
|
|
44
|
use namespace::clean; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
49
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
requires 'get_source_code'; |
20
|
|
|
|
|
|
|
requires 'all_page_ids'; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
has prelude_code => ( |
23
|
|
|
|
|
|
|
is => 'lazy', |
24
|
|
|
|
|
|
|
isa => Str, |
25
|
8
|
|
100
|
8
|
|
143
|
builder => sub { shift->get_source_code( '_prelude' ) // '' }, |
26
|
|
|
|
|
|
|
); |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub get_page { |
29
|
45
|
|
|
45
|
0
|
131
|
my ( $self, $state, $page_id ) = @_; |
30
|
45
|
|
|
|
|
153
|
my $code = $self->get_source_code( $page_id ); |
31
|
|
|
|
|
|
|
|
32
|
45
|
50
|
|
|
|
8013
|
return Story::Interact::Page->new( id => ':end' ) unless $code; |
33
|
|
|
|
|
|
|
|
34
|
45
|
100
|
|
|
|
1179
|
if ( my $prelude = $self->prelude_code ) { |
35
|
1
|
|
|
|
|
261
|
$code = sprintf( "%s;\n%s", $prelude, $code ); |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
45
|
|
|
|
|
900
|
Story::Interact::Syntax::START( $state, $page_id ); |
39
|
45
|
50
|
|
5
|
0
|
5554
|
eval( "package Story::Interact::Syntax; use strict; use warnings; no warnings qw( numeric uninitialized ); $code; 1" ) |
|
5
|
|
|
4
|
|
74
|
|
|
5
|
|
|
4
|
|
22
|
|
|
4
|
|
|
4
|
|
94
|
|
|
4
|
|
|
3
|
|
26
|
|
|
4
|
|
|
3
|
|
10
|
|
|
4
|
|
|
3
|
|
138
|
|
|
4
|
|
|
3
|
|
46
|
|
|
4
|
|
|
3
|
|
12
|
|
|
4
|
|
|
3
|
|
360
|
|
|
4
|
|
|
3
|
|
36
|
|
|
4
|
|
|
3
|
|
13
|
|
|
4
|
|
|
2
|
|
88
|
|
|
3
|
|
|
2
|
|
15
|
|
|
3
|
|
|
2
|
|
6
|
|
|
3
|
|
|
2
|
|
142
|
|
|
3
|
|
|
2
|
|
22
|
|
|
3
|
|
|
2
|
|
6
|
|
|
3
|
|
|
2
|
|
233
|
|
|
3
|
|
|
2
|
|
27
|
|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