From e47914ee50b838cceca77cd881dce9caaf689901 Mon Sep 17 00:00:00 2001 From: Andrew Gazelka Date: Tue, 11 Apr 2023 13:10:26 -0700 Subject: remove vis restriction for local and shared resources --- rtic-macros/src/syntax/ast.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'rtic-macros/src/syntax/ast.rs') diff --git a/rtic-macros/src/syntax/ast.rs b/rtic-macros/src/syntax/ast.rs index 27e6773..d5510cb 100644 --- a/rtic-macros/src/syntax/ast.rs +++ b/rtic-macros/src/syntax/ast.rs @@ -23,9 +23,13 @@ pub struct App { /// Resources shared between tasks defined in `#[shared]` pub shared_resources: Map, + pub shared_resources_vis: syn::Visibility, + /// Task local resources defined in `#[local]` pub local_resources: Map, + pub local_resources_vis: syn::Visibility, + /// User imports pub user_imports: Vec, @@ -170,6 +174,9 @@ pub struct SharedResource { /// Shared resource properties pub properties: SharedResourceProperties, + + /// The visibility of this resource + pub vis: syn::Visibility, } /// A local resource, defined in `#[local]` @@ -187,6 +194,9 @@ pub struct LocalResource { /// The type of this resource pub ty: Box, + + /// The visibility of this resource + pub vis: syn::Visibility, } /// An async software task -- cgit v1.2.3