-
Notifications
You must be signed in to change notification settings - Fork 196
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
Support parsing directives in comment of methods, structs, struct members and package doc #257
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: longit644 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @longit644. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
…bers and package doc
Hi. I am currently overhauling gnengo (#259) and looking at PRs. This PR doesn't explain WHY you need this, and keeping a fork of ast is not something we really want to do. IF we were to consider this it would be on v2, and I don't think we want to at first glance. |
Hi @thockin, Thank you for your response. This PR adds parsing directive to support another new marker creation method for generator. It uses directive syntax If you believe this adds value to |
Do those not get retained as comments? I don't think we want to keep a fork of AST for this, especially after we move to packages.Load (PR pending), which does all the parsing internally. |
No, directives are not retained within the comments. They are filtered out during the parsing process. As for keeping the fork of AST, I agree that may not be the most efficient approach. Instead, we could consider re-implementing the directive check or exploring alternative solutions. |
I don't object to the goal, but I think it's trickier with |
This PR add support for parsing directives in comment of methods, structs, and struct members