Method |
Description |
|
__construct ( Tokens $tokens ) |
|
|
getClassyElements ( ) : array[] |
Get indexes of methods and properties in classy code (classes, interfaces and traits). |
|
getImportUseIndexes ( boolean $perNamespace = false ) : array | array[] |
Get indexes of namespace uses. |
|
getMethodAttributes ( integer $index ) : array |
Returns the attributes of the method under the given index. |
|
isAnonymousClass ( integer $index ) : boolean |
Check if there is an anonymous class under given index. |
|
isArray ( integer $index ) : boolean |
Check if there is an array at given index. |
|
isArrayMultiLine ( integer $index ) : boolean |
Check if the array at index is multiline. |
|
isBinaryOperator ( integer $index ) : boolean |
Checks if there is a binary operator under given index. |
|
isLambda ( integer $index ) : boolean |
Check if the function under given index is a lambda. |
|
isUnaryPredecessorOperator ( integer $index ) : boolean |
Checks if there is an unary predecessor operator under given index. |
|
isUnarySuccessorOperator ( integer $index ) : boolean |
Checks if there is an unary successor operator under given index. |
|
isWhilePartOfDoWhile ( integer $index ) : boolean |
Check if T_WHILE token at given index is `do { . |
|