use CalledVia::BangSuffix

This commit is contained in:
Luke Boswell 2024-03-21 15:51:21 +11:00
parent a394f1b4cf
commit a983ab8341
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
3 changed files with 8 additions and 4 deletions

View file

@ -92,6 +92,10 @@ pub enum CalledVia {
/// This call is the result of desugaring a Record Builder field.
/// e.g. succeed { a <- get "a" } is transformed into (get "a") (succeed \a -> { a })
RecordBuilder,
/// This call is the result of desugaring a Task.await from `!` syntax
/// e.g. Stdout.line! "Hello" becomes Task.await (Stdout.line "Hello") \{} -> ...
BangSuffix,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq)]