parser/tests/fixtures/0015/ast.txt

98 lines
2.3 KiB
Plaintext

[
Declare {
declares: [
DeclareItem {
key: Identifier {
start: (
3,
9,
),
name: "a",
end: (
3,
10,
),
},
value: LiteralInteger {
i: "1",
},
},
],
body: [
Expression {
expr: Variable(
Variable {
start: (
4,
5,
),
name: "a",
end: (
4,
7,
),
},
),
},
],
},
Declare {
declares: [
DeclareItem {
key: Identifier {
start: (
7,
9,
),
name: "b",
end: (
7,
10,
),
},
value: LiteralString {
value: "9",
},
},
],
body: [
Expression {
expr: Variable(
Variable {
start: (
8,
5,
),
name: "a",
end: (
8,
7,
),
},
),
},
],
},
Declare {
declares: [
DeclareItem {
key: Identifier {
start: (
11,
9,
),
name: "foo",
end: (
11,
12,
),
},
value: LiteralFloat {
f: "1.42",
},
},
],
body: [],
},
]