parser/tests/0215/ast.txt
Saif Eddin Gmati b6c145f98e
fix: attributes support (#155)
Signed-off-by: azjezz <azjezz@protonmail.com>
2022-12-04 16:12:23 +01:00

43 lines
1.2 KiB
Plaintext

[
Trait {
name: Identifier {
name: "foo",
},
attributes: [],
body: [
Method {
name: Identifier {
name: "bar",
},
attributes: [],
params: [],
body: [
Expression {
expr: Call {
target: Identifier {
name: "exit",
},
args: [
Arg {
name: None,
value: LiteralInteger {
i: 1,
},
unpack: false,
},
],
},
},
],
flags: [
Public,
],
return_type: Some(
ParentReference,
),
by_ref: false,
},
],
},
]