forked from rectorphp/rector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AttributeKey.php
235 lines (194 loc) · 4.54 KB
/
AttributeKey.php
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<?php
declare(strict_types=1);
namespace Rector\NodeTypeResolver\Node;
use PhpParser\Node\Expr\Closure;
use PhpParser\Node\Stmt\ClassLike;
use PhpParser\Node\Stmt\ClassMethod;
use PhpParser\Node\Stmt\Function_;
use PhpParser\Node\Stmt\Namespace_;
use PHPStan\Analyser\Scope;
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo;
use Symplify\SmartFileSystem\SmartFileInfo;
final class AttributeKey
{
/**
* @var string
*/
public const DECLARES = 'declares';
/**
* @var string
*/
public const VIRTUAL_NODE = 'virtual_node';
/**
* @var string
*/
public const SCOPE = Scope::class;
/**
* @var string
*/
public const NAMESPACE_NAME = 'namespace';
/**
* @var string
*/
public const NAMESPACE_NODE = Namespace_::class;
/**
* @var string
*/
public const USE_NODES = 'useNodes';
/**
* @var string
*/
public const CLASS_NAME = 'className';
/**
* @var string
*/
public const CLASS_SHORT_NAME = 'classShortName';
/**
* @var string
*/
public const CLASS_NODE = ClassLike::class;
/**
* @var string
*/
public const PARENT_CLASS_NAME = 'parentClassName';
/**
* @var string
*/
public const METHOD_NAME = 'methodName';
/**
* @var string
*/
public const METHOD_NODE = ClassMethod::class;
/**
* @var string
*/
public const FUNCTION_NODE = Function_::class;
/**
* @var string
*/
public const ORIGINAL_TYPE = 'originalType';
/**
* Internal php-parser name.
* Do not change this even if you want!
*
* @var string
*/
public const ORIGINAL_NODE = 'origNode';
/**
* Internal php-parser name.
* Do not change this even if you want!
*
* @var string
*/
public const COMMENTS = 'comments';
/**
* Internal php-parser name.
* Do not change this even if you want!
*
* @var string
*/
public const ORIGINAL_NAME = 'originalName';
/**
* Internal php-parser name. @see \PhpParser\NodeVisitor\NameResolver
* Do not change this even if you want!
*
* @var string
*/
public const RESOLVED_NAME = 'resolvedName';
/**
* @internal of php-parser, do not change
* @see https://github.com/nikic/PHP-Parser/pull/681/files
* @var string
*/
public const PARENT_NODE = 'parent';
/**
* @internal of php-parser, do not change
* @see https://github.com/nikic/PHP-Parser/pull/681/files
* @var string
*/
public const PREVIOUS_NODE = 'previous';
/**
* @internal of php-parser, do not change
* @see https://github.com/nikic/PHP-Parser/pull/681/files
* @var string
*/
public const NEXT_NODE = 'next';
/**
* @var string
*/
public const PREVIOUS_STATEMENT = 'previousExpression';
/**
* @var string
*/
public const CURRENT_STATEMENT = 'currentExpression';
/**
* @var string
*/
public const FILE_INFO = SmartFileInfo::class;
/**
* Internal php-parser name.
* Do not change this even if you want!
*
* @var string
*/
public const NAMESPACED_NAME = 'namespacedName';
/**
* Internal php-parser name.
* Do not change this even if you want!
*
* @var string
*/
public const DOC_INDENTATION = 'docIndentation';
/**
* Internal php-parser name.
* Do not change this even if you want!
*
* @var string
*/
public const START_TOKEN_POSITION = 'startTokenPos';
/**
* @var string
* Use often in php-parser
*/
public const KIND = 'kind';
/**
* @var string
*/
public const IS_UNREACHABLE = 'isUnreachable';
/**
* @var string
*/
public const PHP_DOC_INFO = PhpDocInfo::class;
/**
* @var string
*/
public const IS_REGULAR_PATTERN = 'is_regular_pattern';
/**
* @var string
*/
public const DO_NOT_CHANGE = 'do_not_change';
/**
* @var string
*/
public const CLOSURE_NODE = Closure::class;
/**
* @var string
*/
public const PARAMETER_POSITION = 'parameter_position';
/**
* @var string
*/
public const ARGUMENT_POSITION = 'argument_position';
/**
* @var string
*/
public const IS_FIRST_LEVEL_STATEMENT = 'is_first_level_statement';
/**
* @var string
*/
public const IS_FRESH_NODE = 'is_fresh_node';
/**
* @var string
*/
public const TRAILING_COMMA = 'trailing_comma';
}