mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-26 19:21:35 +00:00
Hurray for fun with hygiene!
This commit is contained in:
@ -416,7 +416,7 @@ impl ToTokens for ast::ImportFunction {
|
|||||||
#name: <#t as ::wasm_bindgen::convert::WasmBoundary>::Abi
|
#name: <#t as ::wasm_bindgen::convert::WasmBoundary>::Abi
|
||||||
});
|
});
|
||||||
let var = if i == 0 && is_method {
|
let var = if i == 0 && is_method {
|
||||||
quote! { self }
|
my_quote! { self }
|
||||||
} else {
|
} else {
|
||||||
quote! { #name }
|
quote! { #name }
|
||||||
};
|
};
|
||||||
@ -430,7 +430,7 @@ impl ToTokens for ast::ImportFunction {
|
|||||||
abi_argument_names.push(name);
|
abi_argument_names.push(name);
|
||||||
abi_arguments.push(my_quote! { #name: u32 });
|
abi_arguments.push(my_quote! { #name: u32 });
|
||||||
let var = if i == 0 && is_method {
|
let var = if i == 0 && is_method {
|
||||||
quote! { self }
|
my_quote! { self }
|
||||||
} else {
|
} else {
|
||||||
quote! { #name }
|
quote! { #name }
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user