parser/tests/fixtures/0018/ast.txt

120 lines
2.6 KiB
Plaintext
Raw Normal View History

[
Function {
name: Identifier {
start: (
3,
10,
),
name: "a",
end: (
3,
11,
),
},
attributes: [],
params: [],
body: [
Echo {
values: [
LiteralString {
value: "looping..\n",
},
],
},
Return {
value: Some(
Null,
),
},
],
return_type: Some(
Null,
),
by_ref: false,
},
Expression {
expr: Infix {
lhs: Variable(
Variable {
start: (
9,
1,
),
name: "bar",
end: (
9,
6,
),
},
),
op: Assign,
rhs: Call {
target: Identifier(
Identifier {
start: (
9,
8,
),
name: "a",
end: (
9,
9,
),
},
),
args: [
Arg {
name: None,
value: VariadicPlaceholder,
unpack: false,
},
],
},
},
},
Label {
label: Identifier {
start: (
11,
1,
),
name: "foo",
end: (
11,
4,
),
},
},
Expression {
expr: Call {
target: Variable(
Variable {
start: (
12,
5,
),
name: "bar",
end: (
12,
9,
),
},
),
args: [],
},
},
Goto {
label: Identifier {
start: (
13,
10,
),
name: "foo",
end: (
13,
13,
),
},
},
]