projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website]
/
vendor
/
nikic
/
php-parser
/
test
/
code
/
parser
/
expr
/
logic.test
diff --git
a/vendor/nikic/php-parser/test/code/parser/expr/logic.test
b/vendor/nikic/php-parser/test/code/parser/expr/logic.test
index b3634e91abe7385ed94d11a4f549cc874c42e388..6b434565f6b0d7c604d4f8ca5158c018e12e2bfa 100644
(file)
--- a/
vendor/nikic/php-parser/test/code/parser/expr/logic.test
+++ b/
vendor/nikic/php-parser/test/code/parser/expr/logic.test
@@
-21,139
+21,170
@@
$a = $b || $c;
$a = $b or $c;
-----
array(
$a = $b or $c;
-----
array(
- 0: Expr_BinaryOp_BooleanAnd(
- left: Expr_Variable(
- name: a
+ 0: Stmt_Expression(
+ expr: Expr_BinaryOp_BooleanAnd(
+ left: Expr_Variable(
+ name: a
+ comments: array(
+ 0: // boolean ops
+ )
+ )
+ right: Expr_Variable(
+ name: b
+ )
comments: array(
0: // boolean ops
)
)
comments: array(
0: // boolean ops
)
)
- right: Expr_Variable(
- name: b
- )
comments: array(
0: // boolean ops
)
)
comments: array(
0: // boolean ops
)
)
- 1: Expr_BinaryOp_BooleanOr(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- 2: Expr_BooleanNot(
- expr: Expr_Variable(
- name: a
+ 1: Stmt_Expression(
+ expr: Expr_BinaryOp_BooleanOr(
+ left: Expr_Variable(
+ name: a
+ )
+ right: Expr_Variable(
+ name: b
+ )
)
)
)
)
-
3: Expr_BooleanNot
(
+
2: Stmt_Expression
(
expr: Expr_BooleanNot(
expr: Expr_Variable(
name: a
)
)
)
expr: Expr_BooleanNot(
expr: Expr_Variable(
name: a
)
)
)
- 4: Expr_BinaryOp_LogicalAnd(
- left: Expr_Variable(
- name: a
- comments: array(
- 0: // logical ops
+ 3: Stmt_Expression(
+ expr: Expr_BooleanNot(
+ expr: Expr_BooleanNot(
+ expr: Expr_Variable(
+ name: a
+ )
)
)
)
)
- right: Expr_Variable(
- name: b
- )
- comments: array(
- 0: // logical ops
- )
- )
- 5: Expr_BinaryOp_LogicalOr(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
)
)
- 6: Expr_BinaryOp_LogicalXor(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- 7: Expr_BinaryOp_BooleanOr(
- left: Expr_BinaryOp_BooleanAnd(
+ 4: Stmt_Expression(
+ expr: Expr_BinaryOp_LogicalAnd(
left: Expr_Variable(
name: a
comments: array(
left: Expr_Variable(
name: a
comments: array(
- 0: //
precedence
+ 0: //
logical ops
)
)
right: Expr_Variable(
name: b
)
comments: array(
)
)
right: Expr_Variable(
name: b
)
comments: array(
- 0: //
precedence
+ 0: //
logical ops
)
)
)
)
- right: Expr_BinaryOp_BooleanAnd(
+ comments: array(
+ 0: // logical ops
+ )
+ )
+ 5: Stmt_Expression(
+ expr: Expr_BinaryOp_LogicalOr(
left: Expr_Variable(
left: Expr_Variable(
- name:
c
+ name:
a
)
right: Expr_Variable(
)
right: Expr_Variable(
- name:
d
+ name:
b
)
)
)
)
- comments: array(
- 0: // precedence
- )
)
)
-
8: Expr_BinaryOp_BooleanAnd
(
-
left: Expr_BinaryOp_BooleanAnd
(
+
6: Stmt_Expression
(
+
expr: Expr_BinaryOp_LogicalXor
(
left: Expr_Variable(
name: a
)
left: Expr_Variable(
name: a
)
- right: Expr_BinaryOp_BooleanOr(
+ right: Expr_Variable(
+ name: b
+ )
+ )
+ )
+ 7: Stmt_Expression(
+ expr: Expr_BinaryOp_BooleanOr(
+ left: Expr_BinaryOp_BooleanAnd(
left: Expr_Variable(
left: Expr_Variable(
- name: b
+ name: a
+ comments: array(
+ 0: // precedence
+ )
)
right: Expr_Variable(
)
right: Expr_Variable(
+ name: b
+ )
+ comments: array(
+ 0: // precedence
+ )
+ )
+ right: Expr_BinaryOp_BooleanAnd(
+ left: Expr_Variable(
name: c
)
name: c
)
+ right: Expr_Variable(
+ name: d
+ )
+ )
+ comments: array(
+ 0: // precedence
)
)
)
)
-
right: Expr_Variable
(
- name: d
+
comments: array
(
+ 0: // precedence
)
)
)
)
- 9: Expr_Assign(
- var: Expr_Variable(
- name: a
- )
- expr: Expr_BinaryOp_BooleanOr(
- left: Expr_Variable(
- name: b
+ 8: Stmt_Expression(
+ expr: Expr_BinaryOp_BooleanAnd(
+ left: Expr_BinaryOp_BooleanAnd(
+ left: Expr_Variable(
+ name: a
+ )
+ right: Expr_BinaryOp_BooleanOr(
+ left: Expr_Variable(
+ name: b
+ )
+ right: Expr_Variable(
+ name: c
+ )
+ )
)
right: Expr_Variable(
)
right: Expr_Variable(
- name:
c
+ name:
d
)
)
)
)
)
)
-
10: Expr_BinaryOp_LogicalOr
(
-
left
: Expr_Assign(
+
9: Stmt_Expression
(
+
expr
: Expr_Assign(
var: Expr_Variable(
name: a
)
var: Expr_Variable(
name: a
)
- expr: Expr_Variable(
- name: b
+ expr: Expr_BinaryOp_BooleanOr(
+ left: Expr_Variable(
+ name: b
+ )
+ right: Expr_Variable(
+ name: c
+ )
)
)
)
)
- right: Expr_Variable(
- name: c
+ )
+ 10: Stmt_Expression(
+ expr: Expr_BinaryOp_LogicalOr(
+ left: Expr_Assign(
+ var: Expr_Variable(
+ name: a
+ )
+ expr: Expr_Variable(
+ name: b
+ )
+ )
+ right: Expr_Variable(
+ name: c
+ )
)
)
)
\ No newline at end of file
)
)
)
\ No newline at end of file