PHP Class Pinq\Parsing\PhpParser\AST

Author: Elliot Levin ([email protected])
Mostra file Open project: timetoogo/pinq Class Usage Examples

Public Methods

Method 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

Protected Methods

Method Description
parseAbsoluteName ( Name $node )
parseNode ( PhpParser\Node $node ) : Expression

Private Methods

Method 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 method

public __construct ( array $nodes )
$nodes array

convert() public static method

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

getExpressions() public method

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

parseAbsoluteName() protected method

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

parseExpressionNode() public method

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

parseNameNode() final public method

final public parseNameNode ( $node ) : Expression
$node
return Pinq\Expressions\Expression

parseNode() protected method

protected parseNode ( PhpParser\Node $node ) : Expression
$node PhpParser\Node
return Pinq\Expressions\Expression