Метод | Описание | |
---|---|---|
isMethodName ( integer $tokenType ) : boolean | ||
parseAllocationExpressionTypeReference ( PDepend\Source\AST\ASTAllocationExpression $allocation ) : PDepend\Source\AST\ASTNode | Parse the type reference used in an allocation expression. | |
parseAnonymousClassDeclaration ( PDepend\Source\AST\ASTAllocationExpression $allocation ) : null | |
Attempts to the next sequence of tokens as an anonymous class and adds it to the allocation expression | |
parseCallableDeclarationAddition ( PDepend\Source\AST\AbstractASTCallable $callable ) : PDepend\Source\AST\AbstractASTCallable | ||
parseExpressionVersion70 ( ) : PDepend\Source\AST\ASTNode | In this method we implement parsing of PHP 7.0 specific expressions. | |
parseFormalParameter ( ) : PDepend\Source\AST\ASTFormalParameter | This method will parse a formal parameter. A formal parameter is at least a variable name, but can also contain a default parameter value. | |
parseOptionalExpressionForVersion ( ) : PDepend\Source\AST\ASTNode | This method will be called when the base parser cannot handle an expression in the base version. In this method you can implement version specific expressions. | |
parseReturnTypeHint ( ) : PDepend\Source\AST\ASTType | ||
parseTypeHint ( ) : PDepend\Source\AST\ASTNode | Parses a type hint that is valid in the supported PHP version. |
Метод | Описание | |
---|---|---|
isScalarOrCallableTypeHint ( string $image ) : boolean | Tests if the given image is a PHP 7 type hint. | |
parseScalarOrCallableTypeHint ( string $image ) : PDepend\Source\AST\ASTType | Parses a scalar type hint or a callable type hint. |
protected isMethodName ( integer $tokenType ) : boolean | ||
$tokenType | integer | |
Результат | boolean |
protected parseAllocationExpressionTypeReference ( PDepend\Source\AST\ASTAllocationExpression $allocation ) : PDepend\Source\AST\ASTNode | ||
$allocation | PDepend\Source\AST\ASTAllocationExpression | |
Результат | PDepend\Source\AST\ASTNode |
protected parseAnonymousClassDeclaration ( PDepend\Source\AST\ASTAllocationExpression $allocation ) : null | |
||
$allocation | PDepend\Source\AST\ASTAllocationExpression | |
Результат | null | |
protected parseCallableDeclarationAddition ( PDepend\Source\AST\AbstractASTCallable $callable ) : PDepend\Source\AST\AbstractASTCallable | ||
$callable | PDepend\Source\AST\AbstractASTCallable | |
Результат | PDepend\Source\AST\AbstractASTCallable |
protected parseExpressionVersion70 ( ) : PDepend\Source\AST\ASTNode | ||
Результат | PDepend\Source\AST\ASTNode |
-- -------
function foo(Bar $x, $y = 42) }
-- -------
protected parseFormalParameter ( ) : PDepend\Source\AST\ASTFormalParameter | ||
Результат | PDepend\Source\AST\ASTFormalParameter |
protected parseOptionalExpressionForVersion ( ) : PDepend\Source\AST\ASTNode | ||
Результат | PDepend\Source\AST\ASTNode |
protected parseReturnTypeHint ( ) : PDepend\Source\AST\ASTType | ||
Результат | PDepend\Source\AST\ASTType |
protected parseTypeHint ( ) : PDepend\Source\AST\ASTNode | ||
Результат | PDepend\Source\AST\ASTNode |