PLS/Server/Request/TextDocument/DidSave.pm

filter: Statementstmt 86.3% 19 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 0.0% 0 / 1 totaltotal 83.3% 25 / 30 CC 1 SCAR 1.3
CC
1
Cov
86%
service
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« PLS/Server/Request/Initialized.pm ↑ Summary PLS/Server/Request/Initialize.pm »
1 package PLS::Server::Request::TextDocument::DidSave;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use parent 'PLS::Server::Request';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶use Coro;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶use PLS::Parser::Document;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use PLS::Server::Request::Diagnostics::PublishDiagnostics;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 =head1 NAME
14  
15 PLS::Server::Request::TextDocument::DidSave
16  
17 =head1 DESCRIPTION
18  
19 This is a notification from the client to the server that
20 a text document was saved.
21  
22 =cut
23  
24 sub service
25 {
26 0 ▶ my ($self, $server) = @_;
Subroutine service: not called CC=1 SCAR=6.9
Pod undocumented
27  
28 0 $server->{server_requests}->put(PLS::Server::Request::Diagnostics::PublishDiagnostics->new(uri => $self->{params}{textDocument}{uri}));
29  
30 0 return;
31 } ## end sub service
32  
33 1 1;
« PLS/Server/Request/Initialized.pm ↑ Summary PLS/Server/Request/Initialize.pm »