nac3_sca/nac3parser/src/snapshots/nac3parser__parser__tests__...

162 lines
5.8 KiB
Plaintext
Raw Normal View History

---
source: nac3parser/src/parser.rs
2021-12-26 00:23:54 +08:00
assertion_line: 118
expression: parse_ast
---
[
Located {
location: Location {
row: 1,
column: 1,
2021-12-28 01:38:16 +08:00
file: FileName(
"unknown",
),
},
custom: (),
node: If {
test: Located {
location: Location {
row: 1,
column: 4,
2021-12-28 01:38:16 +08:00
file: FileName(
"unknown",
),
},
custom: (),
node: Constant {
value: Int(
2022-03-08 02:36:40 +08:00
1,
),
kind: None,
},
},
body: [
Located {
location: Location {
row: 1,
column: 7,
2021-12-28 01:38:16 +08:00
file: FileName(
"unknown",
),
},
custom: (),
node: Expr {
value: Located {
location: Location {
row: 1,
column: 7,
2021-12-28 01:38:16 +08:00
file: FileName(
"unknown",
),
},
custom: (),
node: Constant {
value: Int(
2022-03-08 02:36:40 +08:00
10,
),
kind: None,
},
},
config_comment: [],
},
},
],
orelse: [
Located {
location: Location {
row: 2,
column: 1,
2021-12-28 01:38:16 +08:00
file: FileName(
"unknown",
),
},
custom: (),
node: If {
test: Located {
location: Location {
row: 2,
column: 6,
2021-12-28 01:38:16 +08:00
file: FileName(
"unknown",
),
},
custom: (),
node: Constant {
value: Int(
2022-03-08 02:36:40 +08:00
2,
),
kind: None,
},
},
body: [
Located {
location: Location {
row: 2,
column: 9,
2021-12-28 01:38:16 +08:00
file: FileName(
"unknown",
),
},
custom: (),
node: Expr {
value: Located {
location: Location {
row: 2,
column: 9,
2021-12-28 01:38:16 +08:00
file: FileName(
"unknown",
),
},
custom: (),
node: Constant {
value: Int(
2022-03-08 02:36:40 +08:00
20,
),
kind: None,
},
},
config_comment: [],
},
},
],
orelse: [
Located {
location: Location {
row: 3,
column: 7,
2021-12-28 01:38:16 +08:00
file: FileName(
"unknown",
),
},
custom: (),
node: Expr {
value: Located {
location: Location {
row: 3,
column: 7,
2021-12-28 01:38:16 +08:00
file: FileName(
"unknown",
),
},
custom: (),
node: Constant {
value: Int(
2022-03-08 02:36:40 +08:00
30,
),
kind: None,
},
},
config_comment: [],
},
},
],
config_comment: [],
},
},
],
config_comment: [],
},
},
]