-
Notifications
You must be signed in to change notification settings - Fork 86
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
parse doc comments and visibiliy specifier #14
Conversation
PS: current behaviour is 'unexpected token', which could be classified as a bug and is fixed by this PR. |
Sorry, I'm a bit out of the loop on this—disregard anything that's totally What are you aiming for with this? Where do you want to skip doc/vis? Can Colin Kiegel notifications@github.com schrieb am So., 7. Aug. 2016 um
|
this allows public and/or annotated struct fields, by just skipping over will add a test for this and I might try to combine these matchers to save PS: I was thinking about testing expanded tokens too. Pascal Hertleif notifications@github.com schrieb am Fr., 12. Aug. 2016,
|
d50bde5
to
ec44a15
Compare
Ok, I did this:
Still work in progress (obviously)
PS: I splitted my changes into a history of rather small commits. |
I introduced whitelisting of attributes, only these will be added to setter-fns
If there is demand, we could add these in the future, but I guess they probably make little sense in these positions
All current attributes are listed here. IMO the rest of them doesn't make sense for setter-fns. |
PS: I also re-ordered most of the arguments to introduce |
PPS: If we go along this road, next thing might be to parse and filter the struct-attributes and transfer them to the impl too (candidates again |
d04f55a
to
df6bd9d
Compare
@killercup undid the rebase which caused the trouble - ready for review |
#[derive(PartialEq)] does not like conditional compilation on stable rust
df6bd9d
to
8882553
Compare
implementation according to #13 (comment)
@killercup Seems to work just fine, but it's a delicate / complex macro. At leas a review seems adequate - and we haven't really decided yet.