parser/tests/fixtures/0017/ast.txt

202 lines
5.5 KiB
Plaintext

[
Expression {
expr: AssignmentOperation(
Assign {
left: Variable(
Variable {
start: (
3,
1,
),
name: "a",
end: (
3,
4,
),
},
),
span: (
3,
4,
),
right: New {
target: Identifier(
Identifier {
start: (
3,
10,
),
name: "Foo",
end: (
3,
13,
),
},
),
span: (
3,
6,
),
args: [],
},
},
),
},
Expression {
expr: AssignmentOperation(
Assign {
left: Variable(
Variable {
start: (
4,
1,
),
name: "b",
end: (
4,
4,
),
},
),
span: (
4,
4,
),
right: ArithmeticOperation(
Identity {
span: (
4,
6,
),
right: LiteralInteger {
i: "1",
},
},
),
},
),
},
Expression {
expr: AssignmentOperation(
Assign {
left: Variable(
Variable {
start: (
5,
1,
),
name: "c",
end: (
5,
4,
),
},
),
span: (
5,
4,
),
right: BitwiseOperation(
Not {
span: (
5,
6,
),
right: LiteralInteger {
i: "2",
},
},
),
},
),
},
Expression {
expr: AssignmentOperation(
Assign {
left: Variable(
Variable {
start: (
6,
1,
),
name: "d",
end: (
6,
4,
),
},
),
span: (
6,
4,
),
right: ArithmeticOperation(
PreDecrement {
span: (
6,
6,
),
right: Variable(
Variable {
start: (
6,
8,
),
name: "b",
end: (
6,
10,
),
},
),
},
),
},
),
},
Expression {
expr: AssignmentOperation(
Assign {
left: Variable(
Variable {
start: (
7,
1,
),
name: "e",
end: (
7,
4,
),
},
),
span: (
7,
4,
),
right: ArithmeticOperation(
PreIncrement {
span: (
7,
6,
),
right: Variable(
Variable {
start: (
7,
8,
),
name: "d",
end: (
7,
10,
),
},
),
},
),
},
),
},
]