parser/tests/0017/ast.txt
Saif Eddin Gmati 558ce71563
feat: add test generator (#134)
Co-authored-by: Ryan Chandler <ryangjchandler@gmail.com>
closes https://github.com/ryangjchandler/php-parser-rs/issues/130
2022-11-29 23:19:51 +00:00

69 lines
1.4 KiB
Plaintext

[
Expression {
expr: Infix {
lhs: Variable {
name: "a",
},
op: Assign,
rhs: New {
target: Identifier {
name: "Foo",
},
args: [],
},
},
},
Expression {
expr: Infix {
lhs: Variable {
name: "b",
},
op: Assign,
rhs: UnaryPlus {
value: LiteralInteger {
i: 1,
},
},
},
},
Expression {
expr: Infix {
lhs: Variable {
name: "c",
},
op: Assign,
rhs: BitwiseNot {
value: LiteralInteger {
i: 2,
},
},
},
},
Expression {
expr: Infix {
lhs: Variable {
name: "d",
},
op: Assign,
rhs: PreDecrement {
value: Variable {
name: "b",
},
},
},
},
Expression {
expr: Infix {
lhs: Variable {
name: "e",
},
op: Assign,
rhs: PreIncrement {
value: Variable {
name: "d",
},
},
},
},
]