parser/tests/fixtures/0274/ast.txt
Saif Eddin Gmati 6a6d4d0e5f
chore: refactor ident and dynamic var parsers (#192)
Signed-off-by: azjezz <azjezz@protonmail.com>
2022-12-10 15:24:55 +01:00

148 lines
6.6 KiB
Plaintext

[
Class(
Class {
start: (
3,
1,
),
end: (
9,
1,
),
name: SimpleIdentifier {
span: (
3,
7,
),
name: "a",
},
extends: None,
implements: None,
attributes: [],
members: [
Method(
Method {
start: (
4,
12,
),
end: (
8,
5,
),
name: SimpleIdentifier {
span: (
4,
21,
),
name: "foo",
},
attributes: [],
parameters: MethodParameterList {
start: (
4,
24,
),
end: (
4,
27,
),
members: [],
},
body: Some(
[
Expression {
expr: AssignmentOperation(
Assign {
left: Variable(
SimpleVariable(
SimpleVariable {
span: (
5,
9,
),
name: "q",
},
),
),
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(
SimpleIdentifier(
SimpleIdentifier {
span: (
6,
28,
),
name: "bar",
},
),
),
args: [],
},
),
},
],
static: false,
},
),
},
),
},
],
),
modifiers: MethodModifierGroup {
modifiers: [
Public {
start: (
4,
5,
),
end: (
4,
12,
),
},
],
},
return_type: None,
by_ref: false,
},
),
],
},
),
]