本文整理汇总了PHP中PHPParser_Node_Expr类的典型用法代码示例。如果您正苦于以下问题:PHP PHPParser_Node_Expr类的具体用法?PHP PHPParser_Node_Expr怎么用?PHP PHPParser_Node_Expr使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了PHPParser_Node_Expr类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Constructs an error suppress node.
*
* @param PHPParser_Node_Expr $expr Expression
* @param int $line Line
* @param null|string $docComment Nearest doc comment
*/
public function __construct(PHPParser_Node_Expr $expr, $line = -1, $docComment = null)
{
parent::__construct(array('expr' => $expr), $line, $docComment);
}
示例2: __construct
/**
* Constructs a concat node.
*
* @param PHPParser_Node_Expr $left The left hand side expression
* @param PHPParser_Node_Expr $right The right hand side expression
* @param array $attributes Additional attributes
*/
public function __construct(PHPParser_Node_Expr $left, PHPParser_Node_Expr $right, array $attributes = array())
{
parent::__construct(array('left' => $left, 'right' => $right), $attributes);
}
示例3: __construct
/**
* Constructs a function call node.
*
* @param PHPParser_Node_Name|PHPParser_Node_Expr $class Class name
* @param PHPParser_Node_Arg[] $args Arguments
* @param int $line Line
* @param null|string $docComment Nearest doc comment
*/
public function __construct($class, array $args = array(), $line = -1, $docComment = null)
{
parent::__construct(array('class' => $class, 'args' => $args), $line, $docComment);
}
示例4: __construct
/**
* Constructs a yield expression node.
*
* @param null|PHPParser_Node_Expr $value ´ Value expression
* @param null|PHPParser_Node_Expr $key Key expression
* @param array $attributes Additional attributes
*/
public function __construct(PHPParser_Node_Expr $value = null, PHPParser_Node_Expr $key = null, array $attributes = array())
{
parent::__construct(array('key' => $key, 'value' => $value), $attributes);
}
示例5: __construct
/**
* Constructs a function call node.
*
* @param PHPParser_Node_Name|PHPParser_Node_Expr $name Function name
* @param PHPParser_Node_Arg[] $args Arguments
* @param int $line Line
* @param null|string $docComment Nearest doc comment
*/
public function __construct($name, array $args = array(), $line = -1, $docComment = null)
{
parent::__construct(array('name' => $name, 'args' => $args), $line, $docComment);
}
示例6: __construct
/**
* Constructs a function call node.
*
* @param PHPParser_Node_Name|PHPParser_Node_Expr $class Class name
* @param PHPParser_Node_Arg[] $args Arguments
* @param array $attributes Additional attributes
*/
public function __construct($class, array $args = array(), array $attributes = array())
{
parent::__construct(array('class' => $class, 'args' => $args), $attributes);
}
示例7: __construct
/**
* Constructs an array node.
*
* @param PHPParser_Node_Expr_ArrayItem[] $items Items of the array
* @param array $attributes Additional attributes
*/
public function __construct(array $items = array(), array $attributes = array())
{
parent::__construct(array('items' => $items), $attributes);
}
示例8: __construct
/**
* Constructs an array item node.
*
* @param PHPParser_Node_Expr $value Value
* @param null|PHPParser_Node_Expr $key Key
* @param bool $byRef Whether to assign by reference
* @param int $line Line
* @param null|string $docComment Nearest doc comment
*/
public function __construct(PHPParser_Node_Expr $key, PHPParser_Node_Expr $value = null, $line = -1, $docComment = null)
{
parent::__construct(array('key' => $key, 'value' => $value), $line, $docComment);
}
示例9: __construct
/**
* Constructs a variable node.
*
* @param string|PHPParser_Node_Expr $name Name
* @param int $line Line
* @param null|string $docComment Nearest doc comment
*/
public function __construct($name, $line = -1, $docComment = null)
{
parent::__construct(array('name' => $name), $line, $docComment);
}
示例10: __construct
/**
* Constructs an array index fetch node.
*
* @param PHPParser_Node_Expr $var Variable
* @param null|PHPParser_Node_Expr $dim Array index / dim
* @param array $attributes Additional attributes
*/
public function __construct(PHPParser_Node_Expr $var, PHPParser_Node_Expr $dim = null, array $attributes = array())
{
parent::__construct(array('var' => $var, 'dim' => $dim), $attributes);
}
示例11: __construct
/**
* Constructs a function call node.
*
* @param PHPParser_Node_Expr $var Variable holding object
* @param string|PHPParser_Node_Expr $name Method name
* @param PHPParser_Node_Arg[] $args Arguments
* @param array $attributes Additional attributes
*/
public function __construct(PHPParser_Node_Expr $var, $name, array $args = array(), array $attributes = array())
{
parent::__construct(array('var' => $var, 'name' => $name, 'args' => $args), $attributes);
}
示例12: __construct
public function __construct(&$Value)
{
parent::__construct(['Value' => &$Value], []);
}
示例13: __construct
public function __construct($vars, $line = -1, $docComment = null)
{
parent::__construct(array('vars' => $vars), $line, $docComment);
}
示例14: __construct
/**
* Constructs a closure use node.
*
* @param string $var Name of variable
* @param bool $byRef Whether to use by reference
* @param array $attributes Additional attributes
*/
public function __construct($var, $byRef = false, array $attributes = array())
{
parent::__construct(array('var' => $var, 'byRef' => $byRef), $attributes);
}
示例15: __construct
/**
* Constructs a lambda function node.
*
* @param array $subNodes Array of the following optional subnodes:
* 'stmts' => array(): Statements
* 'params' => array(): Parameters
* 'uses' => array(): use()s
* 'byRef' => false : Whether to return by reference
* 'static' => false : Whether the closure is static
* @param int $line Line
* @param null|string $docComment Nearest doc comment
*/
public function __construct(array $subNodes = array(), $line = -1, $docComment = null)
{
parent::__construct($subNodes + array('stmts' => array(), 'params' => array(), 'uses' => array(), 'byRef' => false, 'static' => false), $line, $docComment);
}