mirror of
https://github.com/danog/parser.git
synced 2024-12-02 09:27:50 +01:00
1f4875c802
Signed-off-by: azjezz <azjezz@protonmail.com>
50 lines
1.4 KiB
Plaintext
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,
|
|
},
|
|
],
|
|
},
|
|
]
|