diff options
Diffstat (limited to 'crates/hir_def/src/expr.rs')
-rw-r--r-- | crates/hir_def/src/expr.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/hir_def/src/expr.rs b/crates/hir_def/src/expr.rs index 5be838f4a..24be93773 100644 --- a/crates/hir_def/src/expr.rs +++ b/crates/hir_def/src/expr.rs | |||
@@ -17,9 +17,10 @@ use la_arena::{Idx, RawIdx}; | |||
17 | use syntax::ast::RangeOp; | 17 | use syntax::ast::RangeOp; |
18 | 18 | ||
19 | use crate::{ | 19 | use crate::{ |
20 | builtin_type::{BuiltinFloat, BuiltinInt}, | 20 | builtin_type::{BuiltinFloat, BuiltinInt, BuiltinUint}, |
21 | path::{GenericArgs, Path}, | 21 | path::{GenericArgs, Path}, |
22 | type_ref::{Mutability, Rawness, TypeRef}, | 22 | type_ref::{Mutability, Rawness, TypeRef}, |
23 | BlockId, | ||
23 | }; | 24 | }; |
24 | 25 | ||
25 | pub type ExprId = Idx<Expr>; | 26 | pub type ExprId = Idx<Expr>; |
@@ -42,6 +43,7 @@ pub enum Literal { | |||
42 | Char(char), | 43 | Char(char), |
43 | Bool(bool), | 44 | Bool(bool), |
44 | Int(u64, Option<BuiltinInt>), | 45 | Int(u64, Option<BuiltinInt>), |
46 | Uint(u64, Option<BuiltinUint>), | ||
45 | Float(u64, Option<BuiltinFloat>), // FIXME: f64 is not Eq | 47 | Float(u64, Option<BuiltinFloat>), // FIXME: f64 is not Eq |
46 | } | 48 | } |
47 | 49 | ||
@@ -56,6 +58,7 @@ pub enum Expr { | |||
56 | else_branch: Option<ExprId>, | 58 | else_branch: Option<ExprId>, |
57 | }, | 59 | }, |
58 | Block { | 60 | Block { |
61 | id: BlockId, | ||
59 | statements: Vec<Statement>, | 62 | statements: Vec<Statement>, |
60 | tail: Option<ExprId>, | 63 | tail: Option<ExprId>, |
61 | label: Option<LabelId>, | 64 | label: Option<LabelId>, |