Skip to content

Commit

Permalink
refactor(sol-hir): break source into multiple files
Browse files Browse the repository at this point in the history
  • Loading branch information
aripiprazole committed May 29, 2024
1 parent 1da37ba commit 6f1ceb7
Show file tree
Hide file tree
Showing 10 changed files with 1,756 additions and 1,832 deletions.
Binary file added sol-hir/.DS_Store
Binary file not shown.
8 changes: 4 additions & 4 deletions sol-hir/src/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,18 +369,18 @@ mod impls {

impl HirFormatter for stmt::LetStmt {
fn hir_fmt(&self, db: &dyn HirDb, f: &mut Formatter, scope: &Scope) -> std::fmt::Result {
self.pattern(db).hir_fmt(db, f, scope)?;
self.pattern.hir_fmt(db, f, scope)?;
write!(f, " = ")?;
self.value(db).hir_fmt(db, f, scope)
self.value.hir_fmt(db, f, scope)
}
}

impl HirFormatter for stmt::AskStmt {
fn hir_fmt(&self, db: &dyn HirDb, f: &mut Formatter, scope: &Scope) -> std::fmt::Result {
write!(f, "ask ")?;
self.pattern(db).hir_fmt(db, f, scope)?;
self.pattern.hir_fmt(db, f, scope)?;
write!(f, " <- ")?;
self.value(db).hir_fmt(db, f, scope)
self.value.hir_fmt(db, f, scope)
}
}

Expand Down
Loading

0 comments on commit 6f1ceb7

Please sign in to comment.