Searched refs:if (Results 1 – 25 of 45) sorted by relevance
12
/PHP-Parser/test/code/prettyPrinter/stmt/ |
H A D | if.test | 1 if/elseif/else 5 if ($expr) { 9 } else if ($expr3) { 14 if ($expr) { 16 } else if ($expr3) {
|
H A D | block.test | 10 if ($c) { 23 if ($c) {
|
/PHP-Parser/test/code/prettyPrinter/ |
H A D | indent.test | 10 if (1) { 24 if (1) { 37 if (1) { 51 if (1) { 64 if (1) { 78 @@{"\t\t"}@@if (1) {
|
H A D | comments.test | 73 if (true): 84 if (true) {
|
/PHP-Parser/test/code/formatPreservation/ |
H A D | indent.test | 10 if ($a) { 21 if ($a) { 26 if ($a) { 34 if ($a) { 57 if ($a) { 58 if ( 67 if (
|
H A D | blockConversion.test | 5 if 13 if ($a) { 20 if 27 if
|
H A D | closure.test | 5 if (rand(0, 1)) { 16 if (rand(0, 1)) {
|
H A D | removalViaNull.test | 75 if 108 $stmts[5]->expr->if = null; 177 if
|
H A D | insertionOfNullable.test | 73 if ($cond) { // Foo 84 $stmts[4]->expr->if = new Expr\Variable('z'); 170 if ($cond) { // Foo
|
/PHP-Parser/lib/PhpParser/Node/Expr/ |
H A D | Ternary.php | 11 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 D | ternaryAndCoalesce.test | 25 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 D | if.test | 5 if ($a) {} 10 if ($a) {} // without else 12 if ($a): 18 if ($a): endif; // without else
|
H A D | haltCompilerOutermostScope.test | 4 if (true) {
|
H A D | blocklessStatement.test | 1 Blockless statements for if/for/etc 5 if ($a) $A;
|
/PHP-Parser/test/code/parser/stmt/class/ |
H A D | class_position.test | 5 if (1); 38 if (1); 67 if (1);
|
H A D | conditional.test | 5 if (true) {
|
/PHP-Parser/test/code/parser/ |
H A D | comments.test | 11 if ($cond) { 86 if (42) {}
|
/PHP-Parser/doc/component/ |
H A D | Walking_the_AST.markdown | 14 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 D | Error_handling.markdown | 18 if ($e->hasColumnInfo()) { 47 if ($errorHandler->hasErrors()) { 53 if (null !== $stmts) {
|
H A D | Performance.markdown | 26 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 D | Constant_expression_evaluation.markdown | 89 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 D | conditional.test | 5 if (true) {
|
/PHP-Parser/test/code/prettyPrinter/expr/ |
H A D | docStrings.test | 117 if (1) { 128 if (1) {
|
/PHP-Parser/ |
H A D | UPGRADE-3.0.md | 9 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 D | UPGRADE-4.0.md | 14 `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