File: Req.pm

package info (click to toggle)
libperl-languageserver-perl 2.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 340 kB
  • sloc: perl: 4,524; makefile: 10
file content (56 lines) | stat: -rw-r--r-- 785 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package Perl::LanguageServer::Req ;

use strict;
use Moose ;

no warnings 'uninitialized' ;

# ---------------------------------------------------------------------------

has 'id' =>
    (
    isa => 'Maybe[Str]',
    is  => 'ro'
    ) ;

has 'params' =>
    (
    isa => 'HashRef',
    is  => 'ro'
    ) ;

has 'cancel' =>
    (
    isa => 'Bool',
    is  => 'rw',
    default => 0,
    ) ;

has 'is_dap' =>
    (
    isa => 'Bool',
    is  => 'rw',
    default => 0,
    ) ;

has 'type' =>
    (
    isa => 'Str',
    is  => 'rw',
    ) ;

# ---------------------------------------------------------------------------

sub cancel_req
    {
    my ($self) = @_ ;

    $self -> cancel (1) ;

    }


# ---------------------------------------------------------------------------

1 ;