PLS/Server/Request/TextDocument/DidClose.pm

filter: Statementstmt 76.0% 19 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 0.0% 0 / 1 totaltotal 75.7% 25 / 33 CC 1 SCAR 1.3
CC
1
Cov
76%
service
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« PLS/Server/Request/Workspace/DidChangeConfiguration.pm ↑ Summary PLS/Server/Request/TextDocument/DidOpen.pm »
1 package PLS::Server::Request::TextDocument::DidClose;
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 Coro;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use parent 'PLS::Server::Request';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use PLS::Parser::Document;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use PLS::Server::Request::Diagnostics::PublishDiagnostics;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 =head1 NAME
13  
14 PLS::Server::Request::TextDocument::DidClose
15  
16 =head1 DESCRIPTION
17  
18 This is a notification from the client to the server that
19 a text document was closed.
20  
21 =cut
22  
23 sub service
24 {
25 0 ▶ my ($self, $server) = @_;
Subroutine service: not called CC=1 SCAR=6.9
Pod undocumented
26  
27 0 my $text_document = $self->{params}{textDocument};
28 0 PLS::Parser::Document->close_file(%{$text_document});
29  
30 0 $server->{server_requests}->put(PLS::Server::Request::Diagnostics::PublishDiagnostics->new(uri => $self->{params}{textDocument}{uri}, close => 1));
31  
32 0 return;
33 } ## end sub service
34  
35 1 1;
« PLS/Server/Request/Workspace/DidChangeConfiguration.pm ↑ Summary PLS/Server/Request/TextDocument/DidOpen.pm »