line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Parse::Functions::CSharp; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
26259
|
use 5.008; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
39
|
|
4
|
1
|
|
|
1
|
|
7
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
45
|
|
5
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
6
|
1
|
|
|
1
|
|
507
|
use Parse::Functions; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
128
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
9
|
|
|
|
|
|
|
our @ISA = qw(Parse::Functions); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
###################################################################### |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub function_re { |
14
|
3
|
|
|
3
|
0
|
4
|
my ($self) = @_; |
15
|
|
|
|
|
|
|
|
16
|
3
|
|
|
|
|
12
|
my $newline = $self->newline; |
17
|
3
|
|
|
|
|
1055
|
return qr{ |
18
|
|
|
|
|
|
|
/\*.+?\*/ # block comment |
19
|
|
|
|
|
|
|
| |
20
|
|
|
|
|
|
|
\/\/.+?$newline # line comment |
21
|
|
|
|
|
|
|
| |
22
|
|
|
|
|
|
|
(?:^|$newline) # text start or newline |
23
|
|
|
|
|
|
|
\s* |
24
|
|
|
|
|
|
|
(?: |
25
|
|
|
|
|
|
|
(?: \[ [\s\w()]+ \]\s* )? # optional annotations |
26
|
|
|
|
|
|
|
(?: |
27
|
|
|
|
|
|
|
(?: public|protected|private| |
28
|
|
|
|
|
|
|
abstract|static|sealed|virtual|override| |
29
|
|
|
|
|
|
|
explicit|implicit| |
30
|
|
|
|
|
|
|
operator| |
31
|
|
|
|
|
|
|
extern) |
32
|
|
|
|
|
|
|
\s+ |
33
|
|
|
|
|
|
|
){0,4} # zero to 2 method modifiers |
34
|
|
|
|
|
|
|
(?: [\w\[\]<>,]+) # return data type |
35
|
|
|
|
|
|
|
\s+ |
36
|
|
|
|
|
|
|
(\w+) # method name |
37
|
|
|
|
|
|
|
(?: <\w+>)? # optional: generic type parameter |
38
|
|
|
|
|
|
|
\s* |
39
|
|
|
|
|
|
|
\(.*?\) # parentheses around the parameters |
40
|
|
|
|
|
|
|
) |
41
|
|
|
|
|
|
|
}sx; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
# Copyright 2008-2014 The Padre development team as listed in Padre.pm. |
47
|
|
|
|
|
|
|
# LICENSE |
48
|
|
|
|
|
|
|
# This program is free software; you can redistribute it and/or |
49
|
|
|
|
|
|
|
# modify it under the same terms as Perl 5 itself. |
50
|
|
|
|
|
|
|
|