backend: Rename ast::ImportType::name to ast::ImportType::rust_name

This helps pave the way for adding a js_name, and makes it more clear which name
this is.
This commit is contained in:
Nick Fitzgerald
2018-08-07 16:09:38 -07:00
parent 5b935526ff
commit 9104bf87e9
4 changed files with 37 additions and 37 deletions

View File

@ -205,7 +205,7 @@ impl ImportedTypes for syn::PathArguments {
for input in data.inputs.iter() {
input.imported_types(f);
}
// TODO do we need to handle output here?
// TODO do we need to handle output here?
// https://docs.rs/syn/0.14.0/syn/struct.ParenthesizedGenericArguments.html
}
syn::PathArguments::None => {}
@ -276,7 +276,7 @@ impl ImportedTypes for ast::ImportType {
where
F: FnMut(&Ident, ImportedTypeKind),
{
f(&self.name, ImportedTypeKind::Definition);
f(&self.rust_name, ImportedTypeKind::Definition);
}
}