parser/tests/0150/ast.txt
Saif Eddin Gmati 1f4875c802 fix: properties parser
Signed-off-by: azjezz <azjezz@protonmail.com>
2022-12-04 08:56:53 +00:00

50 lines
1.4 KiB
Plaintext

[
Namespace {
name: "A\B\C\D\E",
body: [
Noop,
Function {
name: Identifier {
name: "foo",
},
params: [
Param {
name: Variable {
name: "s",
},
type: Some(
String,
),
variadic: false,
default: None,
flags: [],
by_ref: false,
},
],
body: [
Expression {
expr: Call {
target: Identifier {
name: "exit",
},
args: [
Arg {
name: None,
value: LiteralInteger {
i: 0,
},
unpack: false,
},
],
},
},
],
return_type: Some(
StaticReference,
),
by_ref: false,
},
],
},
]