/PHP-Parser/lib/PhpParser/Node/ |
H A D | DeclareItem.php | 10 public Identifier $key; variable in PhpParser\\Node\\DeclareItem 21 public function __construct($key, Node\Expr $value, array $attributes = []) { argument 23 $this->key = \is_string($key) ? new Node\Identifier($key) : $key;
|
H A D | ArrayItem.php | 9 public ?Expr $key; variable in PhpParser\\Node\\ArrayItem 21 * @param null|Expr $key Key 25 …public function __construct(Expr $value, ?Expr $key = null, bool $byRef = false, array $attributes… argument 27 $this->key = $key;
|
/PHP-Parser/test/code/parser/expr/ |
H A D | arraySpread.test | 34 key: null 42 key: null 50 key: null 152 key: null 167 key: null 206 key: null 220 key: null 238 key: null 256 key: null 307 key: null [all …]
|
H A D | arrayDestructuring.test | 16 key: null 24 key: null 36 key: null 44 key: null 61 key: null 71 key: null 92 key: null 96 key: null 127 key: null 146 key: Scalar_String( [all …]
|
H A D | arrayDef.test | 27 key: null 41 key: null 55 key: null 63 key: null 77 key: null 85 key: null 93 key: Scalar_String( 103 key: Scalar_String( 128 key: null 136 key: null [all …]
|
H A D | arrayEmptyElemens.test | 16 key: null 24 key: null 31 key: null 45 key: null 53 key: null 60 key: null
|
H A D | listWithKeys.test | 14 key: Scalar_String( 28 key: Scalar_String( 46 key: Scalar_String( 52 key: Expr_Variable( 67 key: Scalar_String(
|
H A D | listReferences.test | 16 key: null 35 key: Scalar_String( 56 key: null 75 key: Scalar_String(
|
H A D | issetAndEmpty.test | 59 key: null 67 key: null 75 key: null
|
H A D | exprInList.test | 16 key: null 24 key: null 46 key: null
|
H A D | assign.test | 227 key: null 249 key: null 258 key: null 277 key: null 285 key: null 290 key: null 303 key: null
|
/PHP-Parser/lib/PhpParser/Node/Expr/ |
H A D | Yield_.php | 9 public ?Expr $key; variable in PhpParser\\Node\\Expr\\Yield_ 17 * @param null|Expr $key Key expression 20 public function __construct(?Expr $value = null, ?Expr $key = null, array $attributes = []) { argument 22 $this->key = $key;
|
/PHP-Parser/test/code/parser/stmt/generator/ |
H A D | yieldPrecedence.test | 31 key: null 45 key: null 57 key: Scalar_String( 73 key: Scalar_String( 96 key: null 123 key: null 125 key: Scalar_String( 129 key: Scalar_String( 146 key: Expr_Yield( 147 key: Scalar_String( [all …]
|
H A D | basic.test | 9 yield $key => $value; 14 $data = (yield $key => $value); 48 key: null 57 key: null 66 name: key 79 key: null 117 key: null 143 key: null 166 key: null 178 key: null [all …]
|
H A D | yieldUnaryPrecedence.test | 25 key: null 35 key: null 46 key: null
|
/PHP-Parser/test/code/prettyPrinter/stmt/ |
H A D | foreach.test | 13 foreach ($arr as $key => $val) { 17 foreach ($arr as $key => &$val) { 25 foreach ($arr as $key => $val) { 27 foreach ($arr as $key => &$val) {
|
/PHP-Parser/test/code/parser/expr/fetchAndCall/ |
H A D | constantDeref.test | 54 key: null 62 key: null 70 key: null 91 key: null 99 key: null 107 key: null 134 key: null 142 key: null 150 key: null 171 key: null [all …]
|
/PHP-Parser/lib/PhpParser/ |
H A D | NodeAbstract.php | 151 public function setAttribute(string $key, $value): void { argument 152 $this->attributes[$key] = $value; 155 public function hasAttribute(string $key): bool { argument 156 return array_key_exists($key, $this->attributes); 159 public function getAttribute(string $key, $default = null) { argument 160 if (array_key_exists($key, $this->attributes)) { 161 return $this->attributes[$key];
|
H A D | Node.php | 121 public function setAttribute(string $key, $value): void; argument 126 public function hasAttribute(string $key): bool; argument 135 public function getAttribute(string $key, $default = null); argument
|
H A D | NodeDumper.php | 80 foreach ($node->getSubNodeNames() as $key) { 81 $this->res .= "$this->nl " . $key . ': '; 83 $value = $node->$key; 85 if ('flags' === $key || 'newModifier' === $key) { 93 if ('type' === $key 108 foreach ($node->getAttributes() as $key => $value) { 109 if (isset(self::IGNORE_ATTRIBUTES[$key])) { 113 $this->res .= "$this->nl $key: "; 115 if ('kind' === $key) { 140 foreach ($node as $key => $value) { [all …]
|
/PHP-Parser/test/code/parser/stmt/ |
H A D | declare.test | 18 key: Identifier( 31 key: Identifier( 39 key: Identifier( 60 key: Identifier( 68 key: Identifier(
|
/PHP-Parser/test/code/parser/expr/uvs/ |
H A D | isset.test | 18 key: null 26 key: null 54 key: Scalar_String(
|
H A D | misc.test | 95 key: null 103 key: null
|
/PHP-Parser/test/code/parser/stmt/loop/ |
H A D | foreach.test | 85 key: null 93 key: null 116 key: null 125 key: null
|
/PHP-Parser/test/code/formatPreservation/ |
H A D | removalViaNull.test | 70 $key 109 $stmts[6]->expr->items[1]->key = null; 110 $stmts[7]->expr->key = null;
|