parser/tests/fixtures/0220/ast.txt

141 lines
5.1 KiB
Plaintext
Raw Normal View History

2022-12-03 20:31:10 +01:00
[
Class {
name: Identifier {
start: (
3,
7,
),
2022-12-03 20:31:10 +01:00
name: "bar",
end: (
3,
11,
),
2022-12-03 20:31:10 +01:00
},
attributes: [],
2022-12-03 20:31:10 +01:00
extends: None,
implements: [],
body: [],
modifiers: ClassModifierGroup {
flags: [],
},
2022-12-03 20:31:10 +01:00
},
Noop,
Expression {
expr: Infix {
lhs: Variable(
Variable {
start: (
5,
1,
),
name: "e",
end: (
5,
4,
),
},
),
2022-12-03 20:31:10 +01:00
op: Assign,
rhs: New {
target: AnonymousClass {
attributes: [],
2022-12-03 20:31:10 +01:00
extends: Some(
Identifier {
start: (
5,
24,
),
2022-12-03 20:31:10 +01:00
name: "bar",
end: (
5,
28,
),
2022-12-03 20:31:10 +01:00
},
),
implements: [],
body: [
Method(
Method {
start: (
6,
12,
),
end: (
9,
1,
),
name: Identifier {
start: (
6,
21,
),
name: "bar",
end: (
6,
24,
),
},
attributes: [],
parameters: MethodParameterList {
start: (
6,
24,
),
end: (
6,
26,
),
members: [],
},
body: Some(
[
Return {
value: Some(
New {
target: Identifier(
Identifier {
start: (
7,
20,
),
name: "bar",
end: (
7,
23,
),
},
),
args: [],
},
),
2022-12-03 20:31:10 +01:00
},
],
),
flags: MethodModifierGroup {
flags: [
Public {
start: (
6,
5,
),
end: (
6,
12,
),
},
],
2022-12-03 20:31:10 +01:00
},
return_type: Some(
ParentReference,
),
by_ref: false,
},
),
2022-12-03 20:31:10 +01:00
],
},
args: [],
},
},
},
]