projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
13f96602cb1f2848b45bef1f72bc5793bd3d5fe3
[yaffs-website]
/
vendor
/
nikic
/
php-parser
/
test
/
code
/
parser
/
stmt
/
generator
/
yieldUnaryPrecedence.test
1
Yield with unary operator argument
2
-----
3
<?php
4
5
function gen() {
6
yield +1;
7
yield -1;
8
yield * -1;
9
}
10
-----
11
array(
12
0: Stmt_Function(
13
byRef: false
14
name: gen
15
params: array(
16
)
17
returnType: null
18
stmts: array(
19
0: Expr_Yield(
20
key: null
21
value: Expr_UnaryPlus(
22
expr: Scalar_LNumber(
23
value: 1
24
)
25
)
26
)
27
1: Expr_Yield(
28
key: null
29
value: Expr_UnaryMinus(
30
expr: Scalar_LNumber(
31
value: 1
32
)
33
)
34
)
35
2: Expr_BinaryOp_Mul(
36
left: Expr_Yield(
37
key: null
38
value: null
39
)
40
right: Expr_UnaryMinus(
41
expr: Scalar_LNumber(
42
value: 1
43
)
44
)
45
)
46
)
47
)
48
)