Searched refs:kind (Results 1 – 11 of 11) sorted by relevance
/PHP-Parser/test/code/parser/ |
H A D | formattingAttributes.test | 53 kind: KIND_BIN (2) 60 kind: KIND_OCT (8) 67 kind: KIND_DEC (10) 74 kind: KIND_HEX (16) 81 kind: KIND_DEC (10) 164 kind: KIND_NOWDOC (4) 173 kind: KIND_NOWDOC (4) 182 kind: KIND_NOWDOC (4) 192 kind: KIND_HEREDOC (3) 254 kind: KIND_LONG (1) [all …]
|
/PHP-Parser/lib/PhpParser/Internal/ |
H A D | TokenPolyfill.php | 67 * @param int|string|(int|string)[] $kind 69 public function is($kind): bool { argument 70 if (\is_int($kind)) { 71 return $this->id === $kind; 73 if (\is_string($kind)) { 74 return $this->text === $kind; 76 if (\is_array($kind)) { 77 foreach ($kind as $entry) { 95 'Argument #1 ($kind) must be of type string|int|array, ' .gettype($kind) . ' given');
|
/PHP-Parser/lib/PhpParser/ |
H A D | NodeDumper.php | 231 private function dumpIntKind(int $kind): string { argument 232 return $this->dumpEnum($kind, [ 240 private function dumpStringKind(int $kind): string { argument 241 return $this->dumpEnum($kind, [ 249 private function dumpArrayKind(int $kind): string { argument 250 return $this->dumpEnum($kind, [ 256 private function dumpListKind(int $kind): string { argument 257 return $this->dumpEnum($kind, [
|
H A D | ParserAbstract.php | 811 $kind = strpos($startToken, "'") === false 823 $attributes['kind'] = $kind; 854 if ($kind === String_::KIND_HEREDOC) {
|
/PHP-Parser/doc/component/ |
H A D | Pretty_printing.markdown | 34 The pretty printer respects a number of `kind` attributes used by some nodes (e.g., whether an 41 * `shortArraySyntax` determines the used array syntax if the `kind` attribute is not set. This is 47 specify an explicit array syntax using the `kind` attribute. 50 `list()`). This does not affect nodes that specify and explicit syntax using the `kind` attribute.
|
H A D | JSON_representation.markdown | 108 "kind": 2,
|
H A D | Lexer.markdown | 54 /** @param int|string|(int|string)[] $kind Token ID or text (or array of them) */ 55 public function is($kind): bool;
|
/PHP-Parser/lib/PhpParser/PrettyPrinter/ |
H A D | Standard.php | 140 $kind = $node->getAttribute('kind', Scalar\String_::KIND_SINGLE_QUOTED); 141 switch ($kind) { 206 $kind = $node->getAttribute('kind', Scalar\Int_::KIND_DEC); 207 if (Scalar\Int_::KIND_DEC === $kind) { 218 switch ($kind) { 488 $kind = $node->getAttribute('kind', Cast\Double::KIND_DOUBLE); 489 if ($kind === Cast\Double::KIND_DOUBLE) { 491 } elseif ($kind === Cast\Double::KIND_FLOAT) { 494 assert($kind === Cast\Double::KIND_REAL); 724 $kind = $node->getAttribute('kind', Expr\Exit_::KIND_DIE); [all …]
|
/PHP-Parser/ |
H A D | UPGRADE-5.0.md | 101 Now, destructuring is always represented using `Node\Expr\List_`. The `kind` attribute with value 394 …fault. This does not affect nodes that specify an explicit array syntax using the `kind` attribute. 396 …f `list()`). This does not affect nodes that specify an explicit syntax using the `kind` attribute. 484 public function is(int|string|array $kind): bool;
|
H A D | README.md | 115 Let's traverse the AST and perform some kind of modification. For example, drop all function bodies:
|
H A D | CHANGELOG.md | 103 * Added support for printing additional attributes (like `kind`) in `NodeDumper`. 622 * Add `kind` attribute to `Cast\Double_`, which allows to distinguish between `(float)`, 858 * Added `kind` attribute for `Stmt\Namespace_` node, which is one of `KIND_SEMICOLON` or 1030 * Nodes and Comments now implement `JsonSerializable`. The node kind is stored in a `nodeType` 1123 * Added `kind` attribute to `Expr\Exit` to distinguish between `exit` and `die`. 1124 * Added `kind` attribute to `Scalar\LNumber` to distinguish between decimal, binary, octal and 1126 * Added `kind` attribute to `Expr\Array` to distinguish between `array()` and `[]`. 1127 * Added `kind` attribute to `Scalar\String` and `Scalar\Encapsed` to distinguish between
|
Completed in 20 milliseconds