diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2023-01-10 21:03:10 +0100 |
|---|---|---|
| committer | Henrik Tjäder <henrik@tjaders.com> | 2023-03-01 00:33:30 +0100 |
| commit | d6d58b0eb88242cf63724e1420bd29f8a4489916 (patch) | |
| tree | d797b67b381947cc375d9c89cdc15d0cc98dee1a /macros/src/syntax/ast.rs | |
| parent | cd790a94286cdc307d399b7f7a43e305e90de5bf (diff) | |
Async tasks can now take arguments at spawn again
Diffstat (limited to 'macros/src/syntax/ast.rs')
| -rw-r--r-- | macros/src/syntax/ast.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/macros/src/syntax/ast.rs b/macros/src/syntax/ast.rs index da6016a..27e6773 100644 --- a/macros/src/syntax/ast.rs +++ b/macros/src/syntax/ast.rs @@ -1,6 +1,6 @@ //! Abstract Syntax Tree -use syn::{Attribute, Expr, Ident, Item, ItemUse, Pat, Path, Stmt, Type}; +use syn::{Attribute, Expr, Ident, Item, ItemUse, Pat, PatType, Path, Stmt, Type}; use crate::syntax::Map; @@ -205,6 +205,9 @@ pub struct SoftwareTask { /// The context argument pub context: Box<Pat>, + /// The inputs of this software task + pub inputs: Vec<PatType>, + /// The statements that make up the task handler pub stmts: Vec<Stmt>, |
