| /wasmtime-44.0.1/crates/versioned-export-macros/src/ |
| H A D | lib.rs | 26 _attr: proc_macro::TokenStream, in versioned_export() 27 item: proc_macro::TokenStream, in versioned_export() 28 ) -> proc_macro::TokenStream { in versioned_export() 41 _attr: proc_macro::TokenStream, in versioned_link() 42 item: proc_macro::TokenStream, in versioned_link() 43 ) -> proc_macro::TokenStream { in versioned_link() 55 pub fn versioned_stringify_ident(item: proc_macro::TokenStream) -> proc_macro::TokenStream { in versioned_stringify_ident() 62 pub fn versioned_suffix(item: proc_macro::TokenStream) -> proc_macro::TokenStream { in versioned_suffix()
|
| /wasmtime-44.0.1/crates/test-macros/src/ |
| H A D | lib.rs | 10 pub fn wasmtime_test(attrs: TokenStream, item: TokenStream) -> TokenStream { in wasmtime_test() 15 pub fn add_variants(attr: TokenStream, item: TokenStream) -> TokenStream { in add_variants() 20 pub fn flags_test(input: TokenStream) -> TokenStream { in flags_test()
|
| H A D | add_variants.rs | 6 attr: proc_macro::TokenStream, in run() 7 item: proc_macro::TokenStream, in run() 8 ) -> proc_macro::TokenStream { in run() 17 fn expand_variants(count: &syn::LitInt, mut ty: syn::ItemEnum) -> syn::Result<TokenStream> { in expand_variants()
|
| H A D | wasmtime_test.rs | 146 fn to_tokens(&self, tokens: &mut proc_macro2::TokenStream) { in to_tokens() 180 fn to_tokens(&self, tokens: &mut proc_macro2::TokenStream) { in to_tokens() 190 pub fn run(attrs: TokenStream, item: TokenStream) -> TokenStream { in run() 211 fn expand(test_config: &TestConfig, func: Fn) -> Result<TokenStream> { in expand()
|
| H A D | flags_test.rs | 22 pub fn run(input: proc_macro::TokenStream) -> proc_macro::TokenStream { in run() 28 fn expand(test: &FlagsTest) -> Result<TokenStream> { in expand()
|
| /wasmtime-44.0.1/crates/component-macro/src/ |
| H A D | lib.rs | 14 pub fn lift(input: proc_macro::TokenStream) -> proc_macro::TokenStream { in lift() 24 pub fn lower(input: proc_macro::TokenStream) -> proc_macro::TokenStream { in lower() 34 pub fn component_type(input: proc_macro::TokenStream) -> proc_macro::TokenStream { in component_type() 44 pub fn flags(input: proc_macro::TokenStream) -> proc_macro::TokenStream { in flags() 51 pub fn bindgen(input: proc_macro::TokenStream) -> proc_macro::TokenStream { in bindgen()
|
| H A D | component.rs | 117 ) -> Result<TokenStream>; in expand_record() 126 ) -> Result<TokenStream>; in expand_variant() 134 ) -> Result<TokenStream>; in expand_enum() 175 ) -> Result<TokenStream> { in expand_record() 207 ) -> Result<TokenStream> { in expand_variant() 351 typecheck: TokenStream, in expand_record_for_component_type() 354 ) -> Result<TokenStream> { in expand_record_for_component_type() 451 ) -> Result<TokenStream> { in expand_record() 529 ) -> Result<TokenStream> { in expand_variant() 620 ) -> Result<TokenStream> { in expand_enum() [all …]
|
| /wasmtime-44.0.1/crates/wiggle/generate/src/types/ |
| H A D | mod.rs | 15 pub fn define_datatype(namedtype: &witx::NamedType, error: Option<&ErrorType>) -> TokenStream { in define_datatype() 44 fn define_alias(name: &witx::Id, to: &witx::NamedType) -> TokenStream { in define_alias() 54 fn define_builtin(name: &witx::Id, builtin: witx::BuiltinType) -> TokenStream { in define_builtin() 62 pointer_type: TokenStream, in define_witx_pointer() 64 ) -> TokenStream { in define_witx_pointer() 71 fn define_witx_list(name: &witx::Id, arr_raw: &witx::TypeRef) -> TokenStream { in define_witx_list() 77 pub fn int_repr_tokens(int_repr: witx::IntRepr) -> TokenStream { in int_repr_tokens()
|
| H A D | error.rs | 11 ) -> TokenStream { in define_error()
|
| H A D | handle.rs | 7 pub(super) fn define_handle(name: &witx::Id, h: &witx::HandleDatatype) -> TokenStream { in define_handle()
|
| H A D | flags.rs | 10 ) -> TokenStream { in define_flags()
|
| H A D | record.rs | 8 pub(super) fn define_struct(name: &witx::Id, s: &witx::RecordDatatype) -> TokenStream { in define_struct()
|
| H A D | variant.rs | 11 ) -> TokenStream { in define_variant()
|
| /wasmtime-44.0.1/pulley/macros/src/ |
| H A D | interp_disable_if_cfg.rs | 9 pub fn run(attrs: TokenStream, item: TokenStream) -> TokenStream { in run() 52 fn to_tokens(&self, tokens: &mut proc_macro2::TokenStream) { in to_tokens() 79 fn to_tokens(&self, tokens: &mut proc_macro2::TokenStream) { in to_tokens() 86 fn expand(cfg: syn::Ident, func: Fn) -> Result<TokenStream> { in expand()
|
| H A D | lib.rs | 6 pub fn interp_disable_if_cfg(attrs: TokenStream, item: TokenStream) -> TokenStream { in interp_disable_if_cfg()
|
| /wasmtime-44.0.1/crates/c-api-macros/src/ |
| H A D | lib.rs | 28 pub fn declare_own(input: proc_macro::TokenStream) -> proc_macro::TokenStream { in declare_own() 43 pub fn declare_ty(input: proc_macro::TokenStream) -> proc_macro::TokenStream { in declare_ty() 67 pub fn declare_ref(input: proc_macro::TokenStream) -> proc_macro::TokenStream { in declare_ref()
|
| /wasmtime-44.0.1/crates/wiggle/macro/src/ |
| H A D | lib.rs | 141 pub fn from_witx(args: TokenStream) -> TokenStream { in from_witx() 197 pub fn wasmtime_integration(args: TokenStream) -> TokenStream { in wasmtime_integration()
|
| /wasmtime-44.0.1/crates/wasi-preview1-component-adapter/byte-array-literals/src/ |
| H A D | lib.rs | 7 pub fn str(input: TokenStream) -> TokenStream { in str() 20 pub fn str_nl(input: TokenStream) -> TokenStream { in str_nl()
|
| /wasmtime-44.0.1/crates/wiggle/generate/src/ |
| H A D | funcs.rs | 15 ) -> TokenStream { in define_func() 33 ) -> (TokenStream, Vec<Ident>) { in _define_func() 168 fn finish_block(&mut self, operand: Option<TokenStream>) { in finish_block() 191 operands: &mut Vec<TokenStream>, in emit() 192 results: &mut Vec<TokenStream>, in emit()
|
| H A D | names.rs | 13 pub fn builtin_type(b: BuiltinType) -> TokenStream { in builtin_type() 29 pub fn wasm_type(ty: WasmType) -> TokenStream { in wasm_type() 38 pub fn type_ref(tref: &TypeRef, lifetime: TokenStream) -> TokenStream { in type_ref()
|
| H A D | lib.rs | 21 pub fn generate(doc: &witx::Document, settings: &CodegenSettings) -> TokenStream { in generate() 90 pub fn generate_metadata(doc: &witx::Document) -> TokenStream { in generate_metadata()
|
| H A D | wasmtime.rs | 13 ) -> TokenStream { in link_module() 75 ) -> TokenStream { in generate_func()
|
| H A D | module_trait.rs | 16 pub fn define_module_trait(m: &Module, settings: &CodegenSettings) -> TokenStream { in define_module_trait()
|
| H A D | codegen_settings.rs | 127 pub fn typename(&self) -> TokenStream { in typename() 143 pub fn typename(&self) -> TokenStream { in typename()
|
| /wasmtime-44.0.1/crates/component-macro/test-helpers/src/ |
| H A D | lib.rs | 6 pub fn foreach(input: TokenStream) -> TokenStream { in foreach()
|