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