mirror of
https://github.com/Noratrieb/ub.git
synced 2026-01-14 16:45:05 +01:00
70 lines
2.7 KiB
Text
70 lines
2.7 KiB
Text
---
|
|
source: parser/src/parser.rs
|
|
expression: r
|
|
---
|
|
(
|
|
Some(
|
|
File {
|
|
name: "parser__parser__tests",
|
|
items: [
|
|
FnDecl(
|
|
FnDecl {
|
|
name: "foo",
|
|
params: [],
|
|
ret_ty: Some(
|
|
Ty {
|
|
span: 12..15,
|
|
kind: U64,
|
|
},
|
|
),
|
|
id: NodeId(
|
|
6,
|
|
),
|
|
span: 0..26,
|
|
body: [
|
|
Expr(
|
|
Expr {
|
|
kind: BinOp(
|
|
BinOp {
|
|
kind: Add,
|
|
lhs: Expr {
|
|
kind: Literal(
|
|
Integer(
|
|
1,
|
|
18..19,
|
|
),
|
|
),
|
|
id: NodeId(
|
|
3,
|
|
),
|
|
span: 18..19,
|
|
},
|
|
rhs: Expr {
|
|
kind: Literal(
|
|
Integer(
|
|
5,
|
|
22..23,
|
|
),
|
|
),
|
|
id: NodeId(
|
|
4,
|
|
),
|
|
span: 22..23,
|
|
},
|
|
span: 18..23,
|
|
},
|
|
),
|
|
id: NodeId(
|
|
5,
|
|
),
|
|
span: 18..23,
|
|
},
|
|
),
|
|
],
|
|
},
|
|
),
|
|
],
|
|
},
|
|
),
|
|
[],
|
|
)
|