Searched refs:TypeRef (Results 1 – 9 of 9) sorted by relevance
| /wasmtime-44.0.1/crates/wasi-preview1-component-adapter/verify/src/ |
| H A D | main.rs | 27 TypeRef::Func(_) => { in main() 36 TypeRef::Table(_) => bail!("should not import table"), in main() 37 TypeRef::Global(_) => bail!("should not import globals"), in main() 38 TypeRef::Memory(_) => {} in main() 39 TypeRef::Tag(_) => bail!("unsupported `tag` type"), in main() 40 TypeRef::FuncExact(_) => bail!("unsupported exact `func` type"), in main()
|
| /wasmtime-44.0.1/crates/wiggle/generate/src/ |
| H A D | codegen_settings.rs | 7 use witx::{Document, Id, InterfaceFunc, Module, NamedType, TypeRef}; 93 pub fn for_abi_error(&self, tref: &TypeRef) -> Option<&ErrorType> { in for_abi_error() 95 TypeRef::Name(nt) => self.for_name(nt), in for_abi_error() 96 TypeRef::Value { .. } => None, in for_abi_error() 124 pub fn abi_type(&self) -> TypeRef { in abi_type() argument 125 TypeRef::Name(self.abi_type.clone()) in abi_type() 140 pub fn abi_type(&self) -> TypeRef { in abi_type() argument 141 TypeRef::Name(self.abi_type.clone()) in abi_type()
|
| H A D | names.rs | 5 use witx::{BuiltinType, Id, Type, TypeRef, WasmType}; 38 pub fn type_ref(tref: &TypeRef, lifetime: TokenStream) -> TokenStream { in type_ref() argument 40 TypeRef::Name(nt) => { in type_ref() 44 TypeRef::Value(ty) => match &**ty { in type_ref() 168 fn snake_typename(tref: &TypeRef) -> String { in snake_typename() 170 TypeRef::Name(nt) => nt.name.as_str().to_snake_case(), in snake_typename() 171 TypeRef::Value(ty) => match &**ty { in snake_typename()
|
| H A D | lifetimes.rs | 8 impl LifetimeExt for witx::TypeRef { implementation
|
| /wasmtime-44.0.1/crates/wiggle/generate/src/types/ |
| H A D | mod.rs | 17 witx::TypeRef::Name(alias_to) => define_alias(&namedtype.name, &alias_to), in define_datatype() 18 witx::TypeRef::Value(v) => match &**v { in define_datatype() 63 pointee: &witx::TypeRef, in define_witx_pointer() argument 71 fn define_witx_list(name: &witx::Id, arr_raw: &witx::TypeRef) -> TokenStream { in define_witx_list() 90 impl WiggleType for witx::TypeRef { implementation 93 witx::TypeRef::Name(alias_to) => (&*alias_to).impls_display(), in impls_display() 94 witx::TypeRef::Value(v) => (&*v).impls_display(), in impls_display()
|
| H A D | record.rs | 17 witx::TypeRef::Name(nt) => { in define_struct() 21 witx::TypeRef::Value(ty) => match &**ty { in define_struct() 49 witx::TypeRef::Name(nt) => { in define_struct() 55 witx::TypeRef::Value(ty) => match &**ty { in define_struct()
|
| /wasmtime-44.0.1/crates/wizer/src/ |
| H A D | info.rs | 116 wasmparser::TypeRef::Memory(ty) => { in push_import() 119 wasmparser::TypeRef::Global(ty) => { in push_import() 122 wasmparser::TypeRef::Func(ty_idx) => { in push_import() 125 wasmparser::TypeRef::Table(ty) => { in push_import() 128 wasmparser::TypeRef::Tag(_) => { in push_import() 131 wasmparser::TypeRef::FuncExact(_) => { in push_import()
|
| H A D | lib.rs | 202 wasmparser::TypeRef::Global(_) => { in instrument() 205 wasmparser::TypeRef::Table(_) => { in instrument() 208 wasmparser::TypeRef::Memory(_) => { in instrument() 211 wasmparser::TypeRef::Func(_) => {} in instrument() 212 wasmparser::TypeRef::FuncExact(_) => {} in instrument() 213 wasmparser::TypeRef::Tag(_) => {} in instrument()
|
| /wasmtime-44.0.1/crates/environ/src/compile/ |
| H A D | module_environ.rs | 24 FuncToValidate, FunctionBody, KnownCustom, NameSectionReader, Naming, Parser, Payload, TypeRef, 347 TypeRef::Func(index) => { in translate_payload() 354 TypeRef::Memory(ty) => { in translate_payload() 358 TypeRef::Global(ty) => { in translate_payload() 362 TypeRef::Table(ty) => { in translate_payload() 366 TypeRef::Tag(ty) => { in translate_payload() 379 TypeRef::FuncExact(_) => { in translate_payload()
|