line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Perl::PrereqScanner::Lite::Constants; |
2
|
11
|
|
|
11
|
|
68
|
use strict; |
|
11
|
|
|
|
|
24
|
|
|
11
|
|
|
|
|
285
|
|
3
|
11
|
|
|
11
|
|
53
|
use warnings; |
|
11
|
|
|
|
|
20
|
|
|
11
|
|
|
|
|
244
|
|
4
|
11
|
|
|
11
|
|
383
|
use utf8; |
|
11
|
|
|
|
|
30
|
|
|
11
|
|
|
|
|
57
|
|
5
|
11
|
|
|
11
|
|
233
|
use Compiler::Lexer::Constants; |
|
11
|
|
|
|
|
31
|
|
|
11
|
|
|
|
|
286
|
|
6
|
|
|
|
|
|
|
|
7
|
11
|
|
|
11
|
|
2522
|
use parent qw(Exporter); |
|
11
|
|
|
|
|
2507
|
|
|
11
|
|
|
|
|
54
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our @EXPORT = qw( |
10
|
|
|
|
|
|
|
REQUIRE_DECL REQUIRED_NAME NAMESPACE_RESOLVER NAMESPACE |
11
|
|
|
|
|
|
|
SEMI_COLON USE_DECL USED_NAME REG_LIST REG_EXP LEFT_PAREN |
12
|
|
|
|
|
|
|
RIGHT_PAREN STRING RAW_STRING VERSION_STRING INT DOUBLE KEY |
13
|
|
|
|
|
|
|
METHOD WHITESPACE COMMENT LEFT_BRACE RIGHT_BRACE |
14
|
|
|
|
|
|
|
LEFT_BRACKET RIGHT_BRACKET BUILTIN_FUNC |
15
|
|
|
|
|
|
|
IF_STMT COMMA |
16
|
|
|
|
|
|
|
); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
use constant { |
19
|
11
|
|
|
|
|
2477
|
REQUIRE_DECL => Compiler::Lexer::TokenType::T_RequireDecl, |
20
|
|
|
|
|
|
|
REQUIRED_NAME => Compiler::Lexer::TokenType::T_RequiredName, |
21
|
|
|
|
|
|
|
NAMESPACE_RESOLVER => Compiler::Lexer::TokenType::T_NamespaceResolver, |
22
|
|
|
|
|
|
|
NAMESPACE => Compiler::Lexer::TokenType::T_Namespace, |
23
|
|
|
|
|
|
|
SEMI_COLON => Compiler::Lexer::TokenType::T_SemiColon, |
24
|
|
|
|
|
|
|
USE_DECL => Compiler::Lexer::TokenType::T_UseDecl, |
25
|
|
|
|
|
|
|
USED_NAME => Compiler::Lexer::TokenType::T_UsedName, |
26
|
|
|
|
|
|
|
REG_LIST => Compiler::Lexer::TokenType::T_RegList, |
27
|
|
|
|
|
|
|
REG_EXP => Compiler::Lexer::TokenType::T_RegExp, |
28
|
|
|
|
|
|
|
STRING => Compiler::Lexer::TokenType::T_String, |
29
|
|
|
|
|
|
|
RAW_STRING => Compiler::Lexer::TokenType::T_RawString, |
30
|
|
|
|
|
|
|
VERSION_STRING => Compiler::Lexer::TokenType::T_VersionString, |
31
|
|
|
|
|
|
|
INT => Compiler::Lexer::TokenType::T_Int, |
32
|
|
|
|
|
|
|
DOUBLE => Compiler::Lexer::TokenType::T_Double, |
33
|
|
|
|
|
|
|
KEY => Compiler::Lexer::TokenType::T_Key, |
34
|
|
|
|
|
|
|
METHOD => Compiler::Lexer::TokenType::T_Method, |
35
|
|
|
|
|
|
|
WHITESPACE => Compiler::Lexer::TokenType::T_WhiteSpace, |
36
|
|
|
|
|
|
|
COMMENT => Compiler::Lexer::TokenType::T_Comment, |
37
|
|
|
|
|
|
|
IF_STMT => Compiler::Lexer::TokenType::T_IfStmt, |
38
|
|
|
|
|
|
|
COMMA => Compiler::Lexer::TokenType::T_Comma, |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
LEFT_PAREN => Compiler::Lexer::TokenType::T_LeftParenthesis, |
41
|
|
|
|
|
|
|
RIGHT_PAREN => Compiler::Lexer::TokenType::T_RightParenthesis, |
42
|
|
|
|
|
|
|
LEFT_BRACE => Compiler::Lexer::TokenType::T_LeftBrace, |
43
|
|
|
|
|
|
|
RIGHT_BRACE => Compiler::Lexer::TokenType::T_RightBrace, |
44
|
|
|
|
|
|
|
LEFT_BRACKET => Compiler::Lexer::TokenType::T_LeftBracket, |
45
|
|
|
|
|
|
|
RIGHT_BRACKET => Compiler::Lexer::TokenType::T_RightBracket, |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
BUILTIN_FUNC => Compiler::Lexer::TokenType::T_BuiltinFunc, |
48
|
11
|
|
|
11
|
|
1811
|
}; |
|
11
|
|
|
|
|
23
|
|
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
1; |
51
|
|
|
|
|
|
|
|