parser/tests/fixtures/0254/ast.txt
2022-12-06 09:51:13 +01:00

128 lines
4.9 KiB
Plaintext

[
Class {
name: Identifier {
start: (
3,
7,
),
name: "Foo",
end: (
4,
1,
),
},
attributes: [],
extends: None,
implements: [],
body: [
Method(
Method {
start: (
5,
5,
),
end: (
8,
5,
),
name: Identifier {
start: (
5,
14,
),
name: "bar",
end: (
5,
17,
),
},
attributes: [],
parameters: MethodParameterList {
start: (
5,
17,
),
end: (
6,
5,
),
members: [],
},
body: Some(
[
Expression {
expr: Closure(
Closure {
start: (
7,
9,
),
end: (
7,
38,
),
attributes: [],
parameters: FunctionParameterList {
start: (
7,
25,
),
end: (
7,
37,
),
members: [
FunctionParameter {
start: (
7,
26,
),
end: (
7,
35,
),
name: Variable {
start: (
7,
31,
),
name: "foo",
end: (
7,
35,
),
},
attributes: [],
type: Some(
SelfReference,
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_ty: None,
uses: [],
by_ref: false,
body: [],
static: true,
},
),
},
],
),
modifiers: MethodModifierGroup {
modifiers: [],
},
return_type: None,
by_ref: false,
},
),
],
modifiers: ClassModifierGroup {
modifiers: [],
},
},
]