mirror of
https://github.com/Noratrieb/ub.git
synced 2026-01-15 17:15:08 +01:00
single craqte
This commit is contained in:
parent
ff78ae710b
commit
2fd78566a3
25 changed files with 36 additions and 64 deletions
53
src/snapshots/ub__parser__tests__if_else.snap
Normal file
53
src/snapshots/ub__parser__tests__if_else.snap
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
---
|
||||
source: src/parser.rs
|
||||
expression: r
|
||||
---
|
||||
(
|
||||
Some(
|
||||
File {
|
||||
name: "ub__parser__tests",
|
||||
items: [
|
||||
FnDecl(
|
||||
FnDecl {
|
||||
name: "foo",
|
||||
params: [],
|
||||
ret_ty: Some(
|
||||
Ty {
|
||||
span: 12..15,
|
||||
kind: U64,
|
||||
},
|
||||
),
|
||||
id: NodeId(
|
||||
1,
|
||||
),
|
||||
span: 0..39,
|
||||
body: [
|
||||
IfStmt(
|
||||
IfStmt {
|
||||
cond: Expr {
|
||||
kind: Name(
|
||||
"false",
|
||||
),
|
||||
id: NodeId(
|
||||
0,
|
||||
),
|
||||
span: 21..26,
|
||||
},
|
||||
body: [],
|
||||
else_part: Some(
|
||||
Else(
|
||||
[],
|
||||
35..37,
|
||||
),
|
||||
),
|
||||
span: 18..37,
|
||||
},
|
||||
),
|
||||
],
|
||||
},
|
||||
),
|
||||
],
|
||||
},
|
||||
),
|
||||
[],
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue