2021-11-03 16:34:05 +08:00
|
|
|
---
|
2021-12-26 00:23:54 +08:00
|
|
|
source: nac3parser/src/parser.rs
|
|
|
|
assertion_line: 164
|
2021-11-03 16:34:05 +08:00
|
|
|
expression: parse_ast
|
|
|
|
|
|
|
|
---
|
|
|
|
Located {
|
|
|
|
location: Location {
|
|
|
|
row: 1,
|
|
|
|
column: 1,
|
2021-12-28 01:38:16 +08:00
|
|
|
file: FileName(
|
|
|
|
"unknown",
|
|
|
|
),
|
2021-11-03 16:34:05 +08:00
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: ListComp {
|
|
|
|
elt: Located {
|
|
|
|
location: Location {
|
|
|
|
row: 1,
|
|
|
|
column: 2,
|
2021-12-28 01:38:16 +08:00
|
|
|
file: FileName(
|
|
|
|
"unknown",
|
|
|
|
),
|
2021-11-03 16:34:05 +08:00
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: Name {
|
|
|
|
id: "x",
|
|
|
|
ctx: Load,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
generators: [
|
|
|
|
Comprehension {
|
|
|
|
target: Located {
|
|
|
|
location: Location {
|
|
|
|
row: 1,
|
|
|
|
column: 8,
|
2021-12-28 01:38:16 +08:00
|
|
|
file: FileName(
|
|
|
|
"unknown",
|
|
|
|
),
|
2021-11-03 16:34:05 +08:00
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: Tuple {
|
|
|
|
elts: [
|
|
|
|
Located {
|
|
|
|
location: Location {
|
|
|
|
row: 1,
|
|
|
|
column: 8,
|
2021-12-28 01:38:16 +08:00
|
|
|
file: FileName(
|
|
|
|
"unknown",
|
|
|
|
),
|
2021-11-03 16:34:05 +08:00
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: Name {
|
|
|
|
id: "y",
|
|
|
|
ctx: Load,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Located {
|
|
|
|
location: Location {
|
|
|
|
row: 1,
|
|
|
|
column: 11,
|
2021-12-28 01:38:16 +08:00
|
|
|
file: FileName(
|
|
|
|
"unknown",
|
|
|
|
),
|
2021-11-03 16:34:05 +08:00
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: Name {
|
|
|
|
id: "y2",
|
|
|
|
ctx: Load,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
ctx: Load,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
iter: Located {
|
|
|
|
location: Location {
|
|
|
|
row: 1,
|
|
|
|
column: 17,
|
2021-12-28 01:38:16 +08:00
|
|
|
file: FileName(
|
|
|
|
"unknown",
|
|
|
|
),
|
2021-11-03 16:34:05 +08:00
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: Name {
|
|
|
|
id: "z",
|
|
|
|
ctx: Load,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
ifs: [],
|
|
|
|
is_async: false,
|
|
|
|
},
|
|
|
|
Comprehension {
|
|
|
|
target: Located {
|
|
|
|
location: Location {
|
|
|
|
row: 1,
|
|
|
|
column: 23,
|
2021-12-28 01:38:16 +08:00
|
|
|
file: FileName(
|
|
|
|
"unknown",
|
|
|
|
),
|
2021-11-03 16:34:05 +08:00
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: Name {
|
|
|
|
id: "a",
|
|
|
|
ctx: Load,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
iter: Located {
|
|
|
|
location: Location {
|
|
|
|
row: 1,
|
|
|
|
column: 28,
|
2021-12-28 01:38:16 +08:00
|
|
|
file: FileName(
|
|
|
|
"unknown",
|
|
|
|
),
|
2021-11-03 16:34:05 +08:00
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: Name {
|
|
|
|
id: "b",
|
|
|
|
ctx: Load,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
ifs: [
|
|
|
|
Located {
|
|
|
|
location: Location {
|
|
|
|
row: 1,
|
|
|
|
column: 35,
|
2021-12-28 01:38:16 +08:00
|
|
|
file: FileName(
|
|
|
|
"unknown",
|
|
|
|
),
|
2021-11-03 16:34:05 +08:00
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: Compare {
|
|
|
|
left: Located {
|
|
|
|
location: Location {
|
|
|
|
row: 1,
|
|
|
|
column: 33,
|
2021-12-28 01:38:16 +08:00
|
|
|
file: FileName(
|
|
|
|
"unknown",
|
|
|
|
),
|
2021-11-03 16:34:05 +08:00
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: Name {
|
|
|
|
id: "a",
|
|
|
|
ctx: Load,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
ops: [
|
|
|
|
Lt,
|
|
|
|
],
|
|
|
|
comparators: [
|
|
|
|
Located {
|
|
|
|
location: Location {
|
|
|
|
row: 1,
|
|
|
|
column: 37,
|
2021-12-28 01:38:16 +08:00
|
|
|
file: FileName(
|
|
|
|
"unknown",
|
|
|
|
),
|
2021-11-03 16:34:05 +08:00
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: Constant {
|
|
|
|
value: Int(
|
2021-12-26 00:23:54 +08:00
|
|
|
Some(
|
|
|
|
5,
|
|
|
|
),
|
2021-11-03 16:34:05 +08:00
|
|
|
),
|
|
|
|
kind: None,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Located {
|
|
|
|
location: Location {
|
|
|
|
row: 1,
|
|
|
|
column: 44,
|
2021-12-28 01:38:16 +08:00
|
|
|
file: FileName(
|
|
|
|
"unknown",
|
|
|
|
),
|
2021-11-03 16:34:05 +08:00
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: Compare {
|
|
|
|
left: Located {
|
|
|
|
location: Location {
|
|
|
|
row: 1,
|
|
|
|
column: 42,
|
2021-12-28 01:38:16 +08:00
|
|
|
file: FileName(
|
|
|
|
"unknown",
|
|
|
|
),
|
2021-11-03 16:34:05 +08:00
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: Name {
|
|
|
|
id: "a",
|
|
|
|
ctx: Load,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
ops: [
|
|
|
|
Gt,
|
|
|
|
],
|
|
|
|
comparators: [
|
|
|
|
Located {
|
|
|
|
location: Location {
|
|
|
|
row: 1,
|
|
|
|
column: 46,
|
2021-12-28 01:38:16 +08:00
|
|
|
file: FileName(
|
|
|
|
"unknown",
|
|
|
|
),
|
2021-11-03 16:34:05 +08:00
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: Constant {
|
|
|
|
value: Int(
|
2021-12-26 00:23:54 +08:00
|
|
|
Some(
|
|
|
|
10,
|
|
|
|
),
|
2021-11-03 16:34:05 +08:00
|
|
|
),
|
|
|
|
kind: None,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
is_async: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}
|