-
Notifications
You must be signed in to change notification settings - Fork 584
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
Rename function parameters using a reserved keyword #757
Conversation
Ok, I hadn't realized that the infoMap was queried for function parameter names. |
It should, for that particular case, it's not? |
Yes it is. New commit adds |
Added another small fix to prevent generation of successive |
Since this PR is still opened, adding another small fix: |
What happens if we don't use filterJavaAnnotations()? Let's name it maybe constructorAnnotations()? |
Without the commit, if we have an info like ` |
Right, but can we just leave all annotations without any issues? Does it break something? |
Ah. You mean place all annotations on both |
Right, it's not exactly useless, so let's so that for the method annotations too if it works |
In fact it does, because some annotations that are valid on |
Sounds good
|
Ok, Can you merge if you agree with these changes ? I'd like to push an update or Pytorch presets that uses them. |
Appends a
_
to the name of function parameters when they clash with a Java reserved keyword.