Home
last modified time | relevance | path

Searched refs:TokenStream (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Bluetooth/system/gd/rust/topshim/macros/src/
Dlib.rs5 use proc_macro::TokenStream;
94 pub fn cb_variant(input: TokenStream) -> TokenStream { in cb_variant() argument
100 let mut params = proc_macro2::TokenStream::new(); in cb_variant()
101 let mut args = proc_macro2::TokenStream::new(); in cb_variant()
120 let mut stmts = proc_macro2::TokenStream::new(); in cb_variant()
142 TokenStream::from(tokens) in cb_variant()
191 pub fn profile_enabled_or(attr: TokenStream, item: TokenStream) -> TokenStream { in profile_enabled_or() argument
197 pub fn profile_enabled_or_default(_attr: TokenStream, item: TokenStream) -> TokenStream { in profile_enabled_or_default() argument
201 fn generate_profile_enabled_or_tokenstream(item: TokenStream, attr_string: String) -> TokenStream { in generate_profile_enabled_or_tokenstream() argument
206 let ret_stmt: proc_macro2::TokenStream = format!("return {};", attr_string).parse().unwrap(); in generate_profile_enabled_or_tokenstream()
[all …]
/packages/modules/Bluetooth/system/gd/rust/linux/stack/btif_macros/src/
Dlib.rs14 use crate::proc_macro::TokenStream;
18 fn debug_output_to_file(gen: &proc_macro2::TokenStream, filename: String) { in debug_output_to_file() argument
36 pub fn btif_callback(_attr: TokenStream, item: TokenStream) -> TokenStream { in btif_callback() argument
37 let ori_item: proc_macro2::TokenStream = item.clone().into(); in btif_callback()
82 pub fn btif_callbacks_dispatcher(attr: TokenStream, item: TokenStream) -> TokenStream { in btif_callbacks_dispatcher() argument
150 let ori_item = proc_macro2::TokenStream::from(item.clone()); in btif_callbacks_dispatcher()
/packages/modules/Bluetooth/system/gd/rust/linux/dbus_projection/dbus_macros/src/
Dlib.rs18 use crate::proc_macro::TokenStream;
22 fn debug_output_to_file(gen: &proc_macro2::TokenStream, filename: String) { in debug_output_to_file() argument
51 pub fn dbus_method(_attr: TokenStream, item: TokenStream) -> TokenStream { in dbus_method() argument
52 let ori_item: proc_macro2::TokenStream = item.clone().into(); in dbus_method()
86 pub fn generate_dbus_exporter(attr: TokenStream, item: TokenStream) -> TokenStream { in generate_dbus_exporter() argument
87 let ori_item: proc_macro2::TokenStream = item.clone().into(); in generate_dbus_exporter()
317 pub fn generate_dbus_interface_client(attr: TokenStream, item: TokenStream) -> TokenStream { in generate_dbus_interface_client() argument
545 fn copy_without_attributes(item: &TokenStream) -> TokenStream { in copy_without_attributes() argument
598 pub fn dbus_propmap(attr: TokenStream, item: TokenStream) -> TokenStream { in dbus_propmap() argument
599 let ori_item: proc_macro2::TokenStream = copy_without_attributes(&item).into(); in dbus_propmap()
[all …]