2021-11-03 16:34:05 +08:00
|
|
|
---
|
2021-11-04 15:03:34 +08:00
|
|
|
source: nac3parser/src/parser.rs
|
2021-12-26 00:23:54 +08:00
|
|
|
assertion_line: 118
|
2021-11-03 16:34:05 +08:00
|
|
|
expression: parse_ast
|
|
|
|
|
|
|
|
---
|
|
|
|
[
|
|
|
|
Located {
|
|
|
|
location: Location {
|
|
|
|
row: 1,
|
|
|
|
column: 1,
|
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: If {
|
|
|
|
test: Located {
|
|
|
|
location: Location {
|
|
|
|
row: 1,
|
|
|
|
column: 4,
|
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: Constant {
|
|
|
|
value: Int(
|
2021-12-26 00:23:54 +08:00
|
|
|
Some(
|
|
|
|
1,
|
|
|
|
),
|
2021-11-03 16:34:05 +08:00
|
|
|
),
|
|
|
|
kind: None,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
body: [
|
|
|
|
Located {
|
|
|
|
location: Location {
|
|
|
|
row: 1,
|
|
|
|
column: 7,
|
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: Expr {
|
|
|
|
value: Located {
|
|
|
|
location: Location {
|
|
|
|
row: 1,
|
|
|
|
column: 7,
|
|
|
|
},
|
|
|
|
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,
|
|
|
|
},
|
|
|
|
},
|
2021-11-04 15:03:34 +08:00
|
|
|
config_comment: [],
|
2021-11-03 16:34:05 +08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
orelse: [
|
|
|
|
Located {
|
|
|
|
location: Location {
|
|
|
|
row: 2,
|
|
|
|
column: 1,
|
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: If {
|
|
|
|
test: Located {
|
|
|
|
location: Location {
|
|
|
|
row: 2,
|
|
|
|
column: 6,
|
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: Constant {
|
|
|
|
value: Int(
|
2021-12-26 00:23:54 +08:00
|
|
|
Some(
|
|
|
|
2,
|
|
|
|
),
|
2021-11-03 16:34:05 +08:00
|
|
|
),
|
|
|
|
kind: None,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
body: [
|
|
|
|
Located {
|
|
|
|
location: Location {
|
|
|
|
row: 2,
|
|
|
|
column: 9,
|
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: Expr {
|
|
|
|
value: Located {
|
|
|
|
location: Location {
|
|
|
|
row: 2,
|
|
|
|
column: 9,
|
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: Constant {
|
|
|
|
value: Int(
|
2021-12-26 00:23:54 +08:00
|
|
|
Some(
|
|
|
|
20,
|
|
|
|
),
|
2021-11-03 16:34:05 +08:00
|
|
|
),
|
|
|
|
kind: None,
|
|
|
|
},
|
|
|
|
},
|
2021-11-04 15:03:34 +08:00
|
|
|
config_comment: [],
|
2021-11-03 16:34:05 +08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
orelse: [
|
|
|
|
Located {
|
|
|
|
location: Location {
|
|
|
|
row: 3,
|
|
|
|
column: 7,
|
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: Expr {
|
|
|
|
value: Located {
|
|
|
|
location: Location {
|
|
|
|
row: 3,
|
|
|
|
column: 7,
|
|
|
|
},
|
|
|
|
custom: (),
|
|
|
|
node: Constant {
|
|
|
|
value: Int(
|
2021-12-26 00:23:54 +08:00
|
|
|
Some(
|
|
|
|
30,
|
|
|
|
),
|
2021-11-03 16:34:05 +08:00
|
|
|
),
|
|
|
|
kind: None,
|
|
|
|
},
|
|
|
|
},
|
2021-11-04 15:03:34 +08:00
|
|
|
config_comment: [],
|
2021-11-03 16:34:05 +08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2021-11-04 15:03:34 +08:00
|
|
|
config_comment: [],
|
2021-11-03 16:34:05 +08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2021-11-04 15:03:34 +08:00
|
|
|
config_comment: [],
|
2021-11-03 16:34:05 +08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|