Skip to content
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

Merged
merged 1 commit into from
Nov 23, 2021

Conversation

MarijnS95
Copy link
Collaborator

No description provided.

Comment on lines 2381 to 2388
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])
}
});
Copy link
Collaborator Author

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.

Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

Comment on lines 2381 to 2388
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])
}
});
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants