parser/tests/fixtures/0274/ast.txt

160 lines
7.0 KiB
Plaintext

[
Class(
Class {
start: (
3,
1,
),
end: (
9,
1,
),
name: Identifier {
start: (
3,
7,
),
name: "a",
end: (
3,
9,
),
},
extends: None,
implements: None,
attributes: [],
members: [
Method(
Method {
start: (
4,
12,
),
end: (
8,
5,
),
name: Identifier {
start: (
4,
21,
),
name: "foo",
end: (
4,
24,
),
},
attributes: [],
parameters: MethodParameterList {
start: (
4,
24,
),
end: (
4,
27,
),
members: [],
},
body: Some(
[
Expression {
expr: AssignmentOperation(
Assign {
left: Variable(
Variable {
start: (
5,
9,
),
name: "q",
end: (
5,
12,
),
},
),
span: (
5,
12,
),
right: Closure(
Closure {
start: (
5,
14,
),
end: (
7,
9,
),
attributes: [],
parameters: FunctionParameterList {
start: (
5,
22,
),
end: (
5,
25,
),
members: [],
},
return_ty: None,
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Parent,
method: Identifier(
Identifier {
start: (
6,
28,
),
name: "bar",
end: (
6,
31,
),
},
),
args: [],
},
),
},
],
static: false,
},
),
},
),
},
],
),
modifiers: MethodModifierGroup {
modifiers: [
Public {
start: (
4,
5,
),
end: (
4,
12,
),
},
],
},
return_type: None,
by_ref: false,
},
),
],
},
),
]