parser/tests/0220/ast.txt

62 lines
1.8 KiB
Plaintext
Raw Normal View History

2022-12-03 20:31:10 +01:00
[
Class {
name: Identifier {
name: "bar",
},
attributes: [],
2022-12-03 20:31:10 +01:00
extends: None,
implements: [],
body: [],
flags: [],
},
Noop,
Expression {
expr: Infix {
lhs: Variable {
name: "e",
},
op: Assign,
rhs: New {
target: AnonymousClass {
attributes: [],
2022-12-03 20:31:10 +01:00
extends: Some(
Identifier {
name: "bar",
},
),
implements: [],
body: [
Method {
name: Identifier {
name: "bar",
},
attributes: [],
2022-12-03 20:31:10 +01:00
params: [],
body: [
Return {
value: Some(
New {
target: Identifier {
name: "bar",
},
args: [],
},
),
},
],
flags: [
Public,
],
return_type: Some(
ParentReference,
),
by_ref: false,
},
],
},
args: [],
},
},
},
]