Home
last modified time | relevance | path

Searched refs:cases (Results 1 – 14 of 14) sorted by relevance

/PHP-Parser/lib/PhpParser/Node/Stmt/
H A DSwitch_.php11 public array $cases; variable in PhpParser\\Node\\Stmt\\Switch_
17 * @param Case_[] $cases Case list
20 public function __construct(Node\Expr $cond, array $cases, array $attributes = []) { argument
23 $this->cases = $cases;
/PHP-Parser/test/code/parser/stmt/
H A Dswitch.test26 cases: array(
58 cases: array(
68 cases: array(
78 cases: array(
/PHP-Parser/test/code/formatPreservation/
H A DinsertionOfNullable.test5 // TODO: The result spacing isn't always optimal. We may want to skip whitespace in some cases.
101 // TODO: The result spacing isn't always optimal. We may want to skip whitespace in some cases.
/PHP-Parser/test/code/parser/stmt/generator/
H A Dbasic.test191 cases: array(
/PHP-Parser/
H A DUPGRADE-1.0.md39 cases.
H A DUPGRADE-3.0.md6 * The specific details of the node representation have changed in some cases, primarily to
82 parser will be able to recover from the error in both cases. For this reason, this change will
H A DCHANGELOG.md224 * Fixed various cases where `\r` at the end of a doc string could be incorrectly merged into a CRLF
300 * Added builders for enums and enum cases.
313 * Support reserved keywords as enum cases.
647 * In some rare, pathological cases flexible heredoc/nowdoc strings change the interpretation of
651 and some cases which we do not expect to occur in practice (such as flexible doc strings being
929 * Error recovery from missing semicolons is now supported in more cases.
1185 cases. (#227)
H A DUPGRADE-5.0.md42 In all cases, the PHP version is a fairly weak hint that is only used on a best-effort basis. The p…
44 …p` will lead to a parse error. However, `final public const X = Y;` will be accepted in both cases.
/PHP-Parser/doc/component/
H A DAST_builders.markdown20 * properties, class constants and enum cases
H A DWalking_the_AST.markdown212 especially if you have more than one visitor. In some cases, it is possible to avoid a full
235 discounting exotic cases like conditionally defining a class two times), you can stop traversal
H A DLexer.markdown83 > tokens. However, the general idea behind the example still applies in other cases.
/PHP-Parser/doc/
H A D0_Introduction.markdown39 interpretation. In such cases, the PHP 7 AST will always be constructed (using `($$foo)[0]`
H A D2_Usage_of_basic_components.markdown44 Which version you should target depends on your use case. In many cases you will want to use the
49 The `createXYZ()` methods optionally accept an array of lexer options. Some use cases that require
386 know which function they are referring to. In most cases this is a non-issue as the global functions
/PHP-Parser/lib/PhpParser/PrettyPrinter/
H A DStandard.php942 . $this->pStmts($node->cases) . $this->nl . '}';

Completed in 25 milliseconds