mirror of
https://github.com/Noratrieb/ub.git
synced 2026-01-14 16:45:05 +01:00
rename parser crate
This commit is contained in:
parent
4aabcdfd76
commit
632f9d3426
16 changed files with 31 additions and 27 deletions
50
parser/src/snapshots/parser__parser__tests__function.snap
Normal file
50
parser/src/snapshots/parser__parser__tests__function.snap
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
---
|
||||
source: parser/src/parser.rs
|
||||
assertion_line: 284
|
||||
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: [
|
||||
Expr(
|
||||
BinOp(
|
||||
BinOp {
|
||||
kind: Add,
|
||||
lhs: Literal(
|
||||
Integer(
|
||||
1,
|
||||
18..19,
|
||||
),
|
||||
),
|
||||
rhs: Literal(
|
||||
Integer(
|
||||
5,
|
||||
22..23,
|
||||
),
|
||||
),
|
||||
span: 0..0,
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
},
|
||||
),
|
||||
],
|
||||
},
|
||||
),
|
||||
[],
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue