forked from M-Labs/nac3
223 lines
7.6 KiB
Plaintext
223 lines
7.6 KiB
Plaintext
---
|
|
source: nac3parser/src/parser.rs
|
|
assertion_line: 164
|
|
expression: parse_ast
|
|
|
|
---
|
|
Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 1,
|
|
file: FileName(
|
|
"unknown",
|
|
),
|
|
},
|
|
custom: (),
|
|
node: ListComp {
|
|
elt: Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 2,
|
|
file: FileName(
|
|
"unknown",
|
|
),
|
|
},
|
|
custom: (),
|
|
node: Name {
|
|
id: "x",
|
|
ctx: Load,
|
|
},
|
|
},
|
|
generators: [
|
|
Comprehension {
|
|
target: Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 8,
|
|
file: FileName(
|
|
"unknown",
|
|
),
|
|
},
|
|
custom: (),
|
|
node: Tuple {
|
|
elts: [
|
|
Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 8,
|
|
file: FileName(
|
|
"unknown",
|
|
),
|
|
},
|
|
custom: (),
|
|
node: Name {
|
|
id: "y",
|
|
ctx: Load,
|
|
},
|
|
},
|
|
Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 11,
|
|
file: FileName(
|
|
"unknown",
|
|
),
|
|
},
|
|
custom: (),
|
|
node: Name {
|
|
id: "y2",
|
|
ctx: Load,
|
|
},
|
|
},
|
|
],
|
|
ctx: Load,
|
|
},
|
|
},
|
|
iter: Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 17,
|
|
file: FileName(
|
|
"unknown",
|
|
),
|
|
},
|
|
custom: (),
|
|
node: Name {
|
|
id: "z",
|
|
ctx: Load,
|
|
},
|
|
},
|
|
ifs: [],
|
|
is_async: false,
|
|
},
|
|
Comprehension {
|
|
target: Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 23,
|
|
file: FileName(
|
|
"unknown",
|
|
),
|
|
},
|
|
custom: (),
|
|
node: Name {
|
|
id: "a",
|
|
ctx: Load,
|
|
},
|
|
},
|
|
iter: Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 28,
|
|
file: FileName(
|
|
"unknown",
|
|
),
|
|
},
|
|
custom: (),
|
|
node: Name {
|
|
id: "b",
|
|
ctx: Load,
|
|
},
|
|
},
|
|
ifs: [
|
|
Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 35,
|
|
file: FileName(
|
|
"unknown",
|
|
),
|
|
},
|
|
custom: (),
|
|
node: Compare {
|
|
left: Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 33,
|
|
file: FileName(
|
|
"unknown",
|
|
),
|
|
},
|
|
custom: (),
|
|
node: Name {
|
|
id: "a",
|
|
ctx: Load,
|
|
},
|
|
},
|
|
ops: [
|
|
Lt,
|
|
],
|
|
comparators: [
|
|
Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 37,
|
|
file: FileName(
|
|
"unknown",
|
|
),
|
|
},
|
|
custom: (),
|
|
node: Constant {
|
|
value: Int(
|
|
5,
|
|
),
|
|
kind: None,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
},
|
|
Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 44,
|
|
file: FileName(
|
|
"unknown",
|
|
),
|
|
},
|
|
custom: (),
|
|
node: Compare {
|
|
left: Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 42,
|
|
file: FileName(
|
|
"unknown",
|
|
),
|
|
},
|
|
custom: (),
|
|
node: Name {
|
|
id: "a",
|
|
ctx: Load,
|
|
},
|
|
},
|
|
ops: [
|
|
Gt,
|
|
],
|
|
comparators: [
|
|
Located {
|
|
location: Location {
|
|
row: 1,
|
|
column: 46,
|
|
file: FileName(
|
|
"unknown",
|
|
),
|
|
},
|
|
custom: (),
|
|
node: Constant {
|
|
value: Int(
|
|
10,
|
|
),
|
|
kind: None,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
},
|
|
],
|
|
is_async: false,
|
|
},
|
|
],
|
|
},
|
|
}
|