-
Notifications
You must be signed in to change notification settings - Fork 192
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
generator: Add missing documentation to bitflag extension variants #501
Conversation
generator/src/lib.rs
Outdated
let notation = constant.notation().map(|n| { | ||
let lowercase = n.to_lowercase(); | ||
if lowercase.contains("backwards") || lowercase.starts_with("alias") { | ||
quote!(#[deprecated = #n]) | ||
} else { | ||
quote!(#[doc = #n]) | ||
} | ||
}); |
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.
Some duplicated code, perhaps we should move this as a default-implementation to trait ConstantExt
.
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.
Did we ever work out what was going on with @MaikKlein's generator rewrite?
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.
There are no direct plans to finish it that I'm aware of. I haven't personally looked through it enough to see if I/we could continue on and finish it, nor how far along it is in the first place.
generator/src/lib.rs
Outdated
let notation = constant.notation().map(|n| { | ||
let lowercase = n.to_lowercase(); | ||
if lowercase.contains("backwards") || lowercase.starts_with("alias") { | ||
quote!(#[deprecated = #n]) | ||
} else { | ||
quote!(#[doc = #n]) | ||
} | ||
}); |
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.
Did we ever work out what was going on with @MaikKlein's generator rewrite?
c47ba20
to
d41435f
Compare
No description provided.