parser/tests/fixtures/0215/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

102 lines
3.5 KiB
Plaintext

[
Trait(
Trait {
start: (
3,
1,
),
end: (
10,
1,
),
name: SimpleIdentifier {
span: (
3,
7,
),
name: "foo",
},
attributes: [],
members: [
Method(
Method {
start: (
7,
12,
),
end: (
9,
5,
),
name: SimpleIdentifier {
span: (
7,
21,
),
name: "bar",
},
attributes: [],
parameters: MethodParameterList {
start: (
7,
24,
),
end: (
7,
26,
),
members: [],
},
body: Some(
[
Expression {
expr: Call {
target: Identifier(
SimpleIdentifier(
SimpleIdentifier {
span: (
8,
9,
),
name: "exit",
},
),
),
args: [
Arg {
name: None,
value: LiteralInteger {
i: "1",
},
unpack: false,
},
],
},
},
],
),
modifiers: MethodModifierGroup {
modifiers: [
Public {
start: (
7,
5,
),
end: (
7,
12,
),
},
],
},
return_type: Some(
ParentReference,
),
by_ref: false,
},
),
],
},
),
]