Fixed macro system by reintroducing MacTok::Resolved
This commit is contained in:
@@ -166,11 +166,7 @@ impl Expr {
|
||||
}
|
||||
impl Format for Expr {
|
||||
async fn print<'a>(&'a self, _c: &'a (impl FmtCtx + ?Sized + 'a)) -> FmtUnit {
|
||||
match &self.data().await.kind {
|
||||
ExprKind::Opaque => "OPAQUE".to_string().into(),
|
||||
ExprKind::Bottom(b) => format!("Bottom({b})").into(),
|
||||
ExprKind::Atom(a) => FmtUnit::from_api(&request(api::ExtAtomPrint(a.atom.clone())).await),
|
||||
}
|
||||
FmtUnit::from_api(&request(api::ExprPrint { target: self.handle.0 }).await)
|
||||
}
|
||||
}
|
||||
impl Eq for Expr {}
|
||||
|
||||
Reference in New Issue
Block a user