| 1 | package Devel::ebug::Backend::Plugin::Codelines; | ||
| 2 | |||
| 3 | 6 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 6 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 6 | our $VERSION = '0.69'; # VERSION | |
| 7 | |||
| 8 | 6 | ▶ | sub register_commands { |
|
Subroutine
register_commands: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 9 | 6 | return ( codelines => { sub => \&codelines } ); | |
| 10 | |||
| 11 | } | ||
| 12 | |||
| 13 | 0 | ▶ | sub codelines { |
|
Subroutine
codelines: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 14 | 0 | my($req, $context) = @_; | |
| 15 | 0 | my $filename = $req->{filename}; | |
| 16 | 0 | my @lines = @{$req->{lines}}; | |
| 17 | |||
| 18 | 0 | return { codelines => [ DB::fetch_codelines($filename, @lines)] }; | |
| 19 | |||
| 20 | } | ||
| 21 | 6 | 1; | |
| 22 | |||
| 23 | __END__ | ||