parser/tests/0220/ast.txt

59 lines
1.7 KiB
Plaintext
Raw Normal View History

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