add labels to todos

main
NotAFile 2022-02-15 21:44:10 +01:00
parent 5ac51f8c5f
commit faa7a06aa2
3 changed files with 9 additions and 9 deletions

View File

@ -131,7 +131,7 @@ impl Context {
typ: signal.typ,
}
}
Expression::Literal(_) => todo!(),
Expression::Literal(_) => todo!("type literal"),
Expression::UnOp(op) => self.type_expression(&op.a)?,
Expression::BinOp(op) => {
let (a, b) = (self.type_expression(&op.a)?, self.type_expression(&op.b)?);
@ -206,8 +206,8 @@ impl Context {
for item in module.items {
let block = match &item {
parser::ModuleItem::Comb(comb) => self.type_comb(comb)?,
parser::ModuleItem::Proc(_) => todo!(),
parser::ModuleItem::State(_) => todo!(),
parser::ModuleItem::Proc(_) => todo!("proc block"),
parser::ModuleItem::State(_) => todo!("state block"),
};
return Ok(block);
}

View File

@ -121,7 +121,7 @@ fn desugar_unop<'a>(op: parser::expression::UnOp<'a>) -> parser::expression::Cal
let a = desugar_expression(op.a);
let op_func = match op.kind {
parser::expression::UnOpKind::BitNot => "not",
parser::expression::UnOpKind::Not => todo!(),
parser::expression::UnOpKind::Not => todo!("bin not"),
};
parser::expression::Call {
name: op_func.into(),
@ -195,8 +195,8 @@ fn lower_expression(
lit.span().fragment().parse().unwrap(),
TODO_WIDTH,
)),
Expression::UnOp(_) => todo!(),
Expression::BinOp(_) => todo!(),
Expression::UnOp(_) => todo!("unary op"),
Expression::BinOp(_) => todo!("binary op"),
}
}

View File

@ -90,9 +90,9 @@ impl TypingContext {
pub fn pretty_type(&self, w: &mut dyn std::fmt::Write, typ: Type) -> std::fmt::Result {
match &self.get(typ).kind {
TypeKind::ElabType(val) => write!(w, "{{{:?}}}", val),
TypeKind::Logic(_) => todo!(),
TypeKind::UInt(_) => todo!(),
TypeKind::Callable => todo!(),
TypeKind::Logic(_) => todo!("print logic"),
TypeKind::UInt(_) => todo!("print uint"),
TypeKind::Callable => todo!("print callable"),
}
}
}