PLS/Server/Request/TextDocument/DidOpen.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/TextDocument/DidClose.pm ↑ Summary PLS/Server/Request/Initialized.pm »
1 package PLS::Server::Request::TextDocument::DidOpen;
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::DidOpen
16  
17 =head1 DESCRIPTION
18  
19 This is a notification from the client to the server that
20 a text document was opened.
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 my $text_document = $self->{params}{textDocument};
29 0 PLS::Parser::Document->open_file(%{$text_document});
30  
31 0 $server->{server_requests}->put(PLS::Server::Request::Diagnostics::PublishDiagnostics->new(uri => $self->{params}{textDocument}{uri}));
32  
33 0 return;
34 } ## end sub service
35  
36 1 1;
« PLS/Server/Request/TextDocument/DidClose.pm ↑ Summary PLS/Server/Request/Initialized.pm »