Home
last modified time | relevance | path

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

/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()
46 pub fn btif_callbacks_dispatcher(attr: TokenStream, item: TokenStream) -> TokenStream { in btif_callbacks_dispatcher() argument
119 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.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 dbus_method(_attr: TokenStream, item: TokenStream) -> TokenStream { in dbus_method() argument
37 let ori_item: proc_macro2::TokenStream = item.clone().into(); in dbus_method()
53 pub fn generate_dbus_exporter(attr: TokenStream, item: TokenStream) -> TokenStream { in generate_dbus_exporter() argument
54 let ori_item: proc_macro2::TokenStream = item.clone().into(); in generate_dbus_exporter()
228 pub fn generate_dbus_interface_client(_attr: TokenStream, item: TokenStream) -> TokenStream { in generate_dbus_interface_client() argument
389 fn copy_without_attributes(item: &TokenStream) -> TokenStream { in copy_without_attributes() argument
405 pub fn dbus_propmap(attr: TokenStream, item: TokenStream) -> TokenStream { in dbus_propmap() argument
406 let ori_item: proc_macro2::TokenStream = copy_without_attributes(&item).into(); in dbus_propmap()
[all …]
/packages/modules/Bluetooth/system/gd/rust/gddi/macros/
Dlib.rs4 use proc_macro::TokenStream;
15 pub fn provides(_attr: TokenStream, item: TokenStream) -> TokenStream { in provides() argument
135 pub fn module(item: TokenStream) -> TokenStream { in module() argument
169 pub fn derive_nop_stop(item: TokenStream) -> TokenStream { in derive_nop_stop() argument
180 pub fn part_out(_attr: TokenStream, item: TokenStream) -> TokenStream { in part_out() argument
/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()
136 TokenStream::from(tokens) in cb_variant()
/packages/modules/Bluetooth/tools/pdl/src/
Dtest_utils.rs111 pub fn assert_expr_eq(left: proc_macro2::TokenStream, right: proc_macro2::TokenStream) { in assert_expr_eq() argument