mirror of
https://github.com/Noratrieb/ub.git
synced 2026-01-15 00:55:04 +01:00
🎉
This commit is contained in:
parent
535e95069d
commit
7087c9be0f
5 changed files with 155 additions and 11 deletions
39
parser/src/snapshots/parser__parser__tests__while_loop.snap
Normal file
39
parser/src/snapshots/parser__parser__tests__while_loop.snap
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
---
|
||||
source: parser/src/parser.rs
|
||||
assertion_line: 336
|
||||
expression: r
|
||||
---
|
||||
(
|
||||
Some(
|
||||
File {
|
||||
name: "parser__parser__tests",
|
||||
items: [
|
||||
FnDecl(
|
||||
FnDecl {
|
||||
name: "foo",
|
||||
params: [],
|
||||
ret_ty: Some(
|
||||
Ty {
|
||||
span: 12..15,
|
||||
kind: U64,
|
||||
},
|
||||
),
|
||||
span: 0..2,
|
||||
body: [
|
||||
WhileStmt(
|
||||
WhileStmt {
|
||||
cond: Name(
|
||||
"false",
|
||||
),
|
||||
body: [],
|
||||
span: 18..32,
|
||||
},
|
||||
),
|
||||
],
|
||||
},
|
||||
),
|
||||
],
|
||||
},
|
||||
),
|
||||
[],
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue