2021-11-04 15:03:34 +08:00
|
|
|
---
|
|
|
|
source: nac3parser/src/parser.rs
|
2021-12-26 00:23:54 +08:00
|
|
|
assertion_line: 199
|
2021-12-28 01:38:16 +08:00
|
|
|
expression: "parse_program(&source, Default::default()).unwrap()"
|
2021-11-04 15:03:34 +08:00
|
|
|
|
|
|
|
---
|
|
|
|
[
|
|
|
|
Located {
|
|
|
|
location: Location {
|
|
|
|
row: 1,
|
|
|
|
column: 1,
|
2021-12-28 01:38:16 +08:00
|
|
|
file: FileName(
|
|
|
|
"unknown",
|
|
|
|
),
|
2021-11-04 15:03:34 +08:00
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: While {
|
|
|
|
test: Located {
|
|
|
|
location: Location {
|
|
|
|
row: 4,
|
|
|
|
column: 7,
|
2021-12-28 01:38:16 +08:00
|
|
|
file: FileName(
|
|
|
|
"unknown",
|
|
|
|
),
|
2021-11-04 15:03:34 +08:00
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: Name {
|
|
|
|
id: "test",
|
|
|
|
ctx: Load,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
body: [
|
|
|
|
Located {
|
|
|
|
location: Location {
|
|
|
|
row: 6,
|
|
|
|
column: 5,
|
2021-12-28 01:38:16 +08:00
|
|
|
file: FileName(
|
|
|
|
"unknown",
|
|
|
|
),
|
2021-11-04 15:03:34 +08:00
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: Assign {
|
|
|
|
targets: [
|
|
|
|
Located {
|
|
|
|
location: Location {
|
|
|
|
row: 6,
|
|
|
|
column: 5,
|
2021-12-28 01:38:16 +08:00
|
|
|
file: FileName(
|
|
|
|
"unknown",
|
|
|
|
),
|
2021-11-04 15:03:34 +08:00
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: Name {
|
|
|
|
id: "a",
|
|
|
|
ctx: Load,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
value: Located {
|
|
|
|
location: Location {
|
|
|
|
row: 6,
|
|
|
|
column: 9,
|
2021-12-28 01:38:16 +08:00
|
|
|
file: FileName(
|
|
|
|
"unknown",
|
|
|
|
),
|
2021-11-04 15:03:34 +08:00
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: Constant {
|
|
|
|
value: Int(
|
2021-12-26 00:23:54 +08:00
|
|
|
Some(
|
|
|
|
3,
|
|
|
|
),
|
2021-11-04 15:03:34 +08:00
|
|
|
),
|
|
|
|
kind: None,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
type_comment: None,
|
|
|
|
config_comment: [
|
|
|
|
"simple assign0",
|
|
|
|
"simple assign1",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
orelse: [],
|
|
|
|
config_comment: [
|
|
|
|
"while1",
|
|
|
|
"while2",
|
|
|
|
"while3",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|