parser/tests/fixtures/0254/ast.txt
2022-12-05 19:59:50 +01:00

75 lines
2.3 KiB
Plaintext

[
Class {
name: Identifier {
start: (
3,
7,
),
name: "Foo",
end: (
4,
1,
),
},
attributes: [],
extends: None,
implements: [],
body: [
Method {
name: Identifier {
start: (
5,
14,
),
name: "bar",
end: (
5,
17,
),
},
attributes: [],
params: [],
body: [
Expression {
expr: Closure {
params: [
Param {
name: Variable {
start: (
7,
31,
),
name: "foo",
end: (
7,
35,
),
},
attributes: [],
type: Some(
SelfReference,
),
variadic: false,
default: None,
flags: [],
by_ref: false,
},
],
attributes: [],
uses: [],
return_type: None,
body: [],
static: true,
by_ref: false,
},
},
],
flags: [],
return_type: None,
by_ref: false,
},
],
flags: [],
},
]