-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ranged Integers #66
base: master
Are you sure you want to change the base?
Ranged Integers #66
Changes from all commits
88210fe
cec2fce
2ac9db2
77cc284
d1fb001
84c9684
6b671d8
940b99f
109a867
1d34f31
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,8 +140,12 @@ pub struct ConcreteTypeDisplay<'a, T: Index<TypeUUID, Output = StructType>> { | |
impl<T: Index<TypeUUID, Output = StructType>> Display for ConcreteTypeDisplay<'_, T> { | ||
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { | ||
match self.inner { | ||
ConcreteType::Named(name) => { | ||
f.write_str(&self.linker_types[name.id].link_info.get_full_name()) | ||
ConcreteType::Named(global_ref) => { | ||
f.write_str(&self.linker_types[global_ref.id].link_info.get_full_name())?; | ||
for template_arg in global_ref.template_args.iter() { | ||
write!(f, "{}", template_arg.1.display(self.linker_types))?; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You should add the field names. Actually, there is a function that does this already: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where do I get the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
} | ||
Ok(()) | ||
} | ||
ConcreteType::Array(arr_box) => { | ||
let (elem_typ, arr_size) = arr_box.deref(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder, it's not something that should concern us too badly, but maybe the boolean comparison ops should
unify(left, right)
. Maybe, maybe not.