mirror of
https://github.com/danog/parser.git
synced 2024-12-04 02:17:47 +01:00
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(
|
||
|
SelfReference,
|
||
|
),
|
||
|
by_ref: false,
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
]
|