PHP Class Pinq\Parsing\PhpParser\AST

Author: Elliot Levin ([email protected])
Afficher le fichier Open project: timetoogo/pinq Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( array $nodes )
convert ( array $nodes ) : Expression[] Converts the supplied php parser nodes to an equivalent expression tree.
getExpressions ( ) : Expression[] Parses the nodes into the equivalent expression tree
parseExpressionNode ( PhpParser\Node\Expr $node )
parseNameNode ( $node ) : Expression

Méthodes protégées

Méthode Description
parseAbsoluteName ( Name $node )
parseNode ( PhpParser\Node $node ) : Expression

Private Methods

Méthode Description
parseArgumentNode ( PhpParser\Node\Arg $node )
parseArrayNode ( PhpParser\Node\Expr\Array_ $node )
parseClosureNode ( Closure $node )
parseFunctionCallNode ( PhpParser\Node\Expr\FuncCall $node )
parseNodes ( array $nodes ) : Expression[]
parseOperatorNode ( PhpParser\Node\Expr $node )
parseParameterNode ( Param $node )
parseScalarNode ( PhpParser\Node\Scalar $node )
parseStatementNode ( PhpParser\Node\Stmt $node )
parseTernaryNode ( PhpParser\Node\Expr\Ternary $node )
verifyNotControlStructure ( PhpParser\Node\Stmt $node )

Method Details

__construct() public méthode

public __construct ( array $nodes )
$nodes array

convert() public static méthode

Converts the supplied php parser nodes to an equivalent expression tree.
public static convert ( array $nodes ) : Expression[]
$nodes array
Résultat Pinq\Expressions\Expression[]

getExpressions() public méthode

Parses the nodes into the equivalent expression tree
public getExpressions ( ) : Expression[]
Résultat Pinq\Expressions\Expression[]

parseAbsoluteName() protected méthode

protected parseAbsoluteName ( Name $node )
$node PhpParser\Node\Name

parseExpressionNode() public méthode

public parseExpressionNode ( PhpParser\Node\Expr $node )
$node PhpParser\Node\Expr

parseNameNode() final public méthode

final public parseNameNode ( $node ) : Expression
$node
Résultat Pinq\Expressions\Expression

parseNode() protected méthode

protected parseNode ( PhpParser\Node $node ) : Expression
$node PhpParser\Node
Résultat Pinq\Expressions\Expression