Home
last modified time | relevance | path

Searched refs:if (Results 1 – 25 of 45) sorted by relevance

12

/PHP-Parser/test/code/prettyPrinter/stmt/
H A Dif.test1 if/elseif/else
5 if ($expr) {
9 } else if ($expr3) {
14 if ($expr) {
16 } else if ($expr3) {
H A Dblock.test10 if ($c) {
23 if ($c) {
/PHP-Parser/test/code/prettyPrinter/
H A Dindent.test10 if (1) {
24 if (1) {
37 if (1) {
51 if (1) {
64 if (1) {
78 @@{"\t\t"}@@if (1) {
H A Dcomments.test73 if (true):
84 if (true) {
/PHP-Parser/test/code/formatPreservation/
H A Dindent.test10 if ($a) {
21 if ($a) {
26 if ($a) {
34 if ($a) {
57 if ($a) {
58 if (
67 if (
H A DblockConversion.test5 if
13 if ($a) {
20 if
27 if
H A Dclosure.test5 if (rand(0, 1)) {
16 if (rand(0, 1)) {
H A DremovalViaNull.test75 if
108 $stmts[5]->expr->if = null;
177 if
H A DinsertionOfNullable.test73 if ($cond) { // Foo
84 $stmts[4]->expr->if = new Expr\Variable('z');
170 if ($cond) { // Foo
/PHP-Parser/lib/PhpParser/Node/Expr/
H A DTernary.php11 public ?Expr $if; variable in PhpParser\\Node\\Expr\\Ternary
19 * @param null|Expr $if Expression for true
23 public function __construct(Expr $cond, ?Expr $if, Expr $else, array $attributes = []) { argument
26 $this->if = $if;
/PHP-Parser/test/code/parser/expr/
H A DternaryAndCoalesce.test25 if: Expr_Variable(
41 if: null
53 if: Expr_Variable(
60 if: Expr_Variable(
76 if: Expr_Variable(
83 if: Expr_Variable(
130 if: Expr_Variable(
/PHP-Parser/test/code/parser/stmt/
H A Dif.test5 if ($a) {}
10 if ($a) {} // without else
12 if ($a):
18 if ($a): endif; // without else
H A DhaltCompilerOutermostScope.test4 if (true) {
H A DblocklessStatement.test1 Blockless statements for if/for/etc
5 if ($a) $A;
/PHP-Parser/test/code/parser/stmt/class/
H A Dclass_position.test5 if (1);
38 if (1);
67 if (1);
H A Dconditional.test5 if (true) {
/PHP-Parser/test/code/parser/
H A Dcomments.test11 if ($cond) {
86 if (42) {}
/PHP-Parser/doc/component/
H A DWalking_the_AST.markdown14 if ($node instanceof Node\Scalar\Int_) {
58 For example, if we have the following excerpt of an AST
107 if ($node instanceof Node\Scalar\LNumber) {
118 if ($node instanceof Node\Expr\BinaryOp\BooleanAnd) {
132 if ($node instanceof Node\Expr\BinaryOp\BooleanAnd) {
147 if ($node instanceof Node\Stmt\Return_) {
164 if ($node instanceof Node\Stmt\Expression
183 if ($node instanceof Node\Stmt\Else_) {
193 only works if the parent structure is an array.
223 if ($node instanceof Node\Stmt\Class_) {
[all …]
H A DError_handling.markdown18 if ($e->hasColumnInfo()) {
47 if ($errorHandler->hasErrors()) {
53 if (null !== $stmts) {
H A DPerformance.markdown26 the AST uses recursion and will generate an error if the value of this option is too low.
32 `zend.assertions=0` if set at runtime). The library currently doesn't make heavy use of assertions,
42 objects have expensive initialization procedures, which will be unnecessarily repeated if the object
H A DConstant_expression_evaluation.markdown89 if ($expr instanceof Expr\ConstFetch) {
92 if ($expr instanceof Expr\ClassConstFetch) {
108 infinite recursion. For example, the following code could lead to infinite recursion if constant
/PHP-Parser/test/code/parser/stmt/function/
H A Dconditional.test5 if (true) {
/PHP-Parser/test/code/prettyPrinter/expr/
H A DdocStrings.test117 if (1) {
128 if (1) {
/PHP-Parser/
H A DUPGRADE-3.0.md9 if you used the error recovery mode or have a custom lexer implementation.
19 The following changes are likely to require code changes if the respective nodes are used:
36 * `void` and `iterable` types are now stored as strings if the PHP 7 parser is used. Previously
52 if ($errors) {
67 if ($errorHandler->hasErrors()) {
75 As a result of this change, if a `Multiple` parser is used (e.g. through the `ParserFactory` using
83 likely pass unnoticed if you do not specifically test for this syntax.
94 if ($errors7->hasErrors()) {
97 if (!$errors5->hasErrors()) {
140 * `$separator` argument of `Name::toString()`. Use `strtr()` instead, if you really need it.
H A DUPGRADE-4.0.md14 `VarLikeIdentifier` nodes if they have form `$ident`). The constructors of the affected nodes will
52 * The `alias` subnode of `UseUse` is now `null` if no explicit alias is given. As such,
54 can be used to get the effective alias, even if it is not explicitly given.
58 * The indentation handling in the pretty printer has been changed (this is only relevant if you

Completed in 77 milliseconds

12