当前位置: 首页>>代码示例>>PHP>>正文


PHP PHPParser_Node_Expr类代码示例

本文整理汇总了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);
 }
开发者ID:hosttor,项目名称:BusinessUSA-OpenSource,代码行数:11,代码来源:ErrorSuppress.php

示例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);
 }
开发者ID:GeorgeBroadley,项目名称:caffeine-vendor,代码行数:11,代码来源:Concat.php

示例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);
 }
开发者ID:hosttor,项目名称:BusinessUSA-OpenSource,代码行数:12,代码来源:New.php

示例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);
 }
开发者ID:rodrigopbel,项目名称:ong,代码行数:11,代码来源:Yield.php

示例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);
 }
开发者ID:hosttor,项目名称:BusinessUSA-OpenSource,代码行数:12,代码来源:FuncCall.php

示例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);
 }
开发者ID:rodrigopbel,项目名称:ong,代码行数:11,代码来源:New.php

示例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);
 }
开发者ID:rodrigopbel,项目名称:ong,代码行数:10,代码来源:Array.php

示例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);
 }
开发者ID:runekaagaard,项目名称:snowscript,代码行数:13,代码来源:DictItem.php

示例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);
 }
开发者ID:hosttor,项目名称:BusinessUSA-OpenSource,代码行数:11,代码来源:Variable.php

示例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);
 }
开发者ID:rodrigopbel,项目名称:ong,代码行数:11,代码来源:ArrayDimFetch.php

示例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);
 }
开发者ID:GeorgeBroadley,项目名称:caffeine-vendor,代码行数:12,代码来源:MethodCall.php

示例12: __construct

 public function __construct(&$Value)
 {
     parent::__construct(['Value' => &$Value], []);
 }
开发者ID:timetoogo,项目名称:penumbra,代码行数:4,代码来源:PHPParserConstantValueNode.php

示例13: __construct

 public function __construct($vars, $line = -1, $docComment = null)
 {
     parent::__construct(array('vars' => $vars), $line, $docComment);
 }
开发者ID:runekaagaard,项目名称:snowscript,代码行数:4,代码来源:AssignList.php

示例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);
 }
开发者ID:GeorgeBroadley,项目名称:caffeine-vendor,代码行数:11,代码来源:ClosureUse.php

示例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);
 }
开发者ID:hosttor,项目名称:BusinessUSA-OpenSource,代码行数:16,代码来源:Closure.php


注:本文中的PHPParser_Node_Expr类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。