We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi all.
I am opening this thread to discuss the possibility of checking the name against the specification names.
Currently in Spoon, I can do the following:
CtVariableReference reference = factory.createLocalVariableReference().setSimpleName("tacos.EatIt()") factory.createVariableRead(reference, false);
This can lead to an inconsistency of the spoon model because the invocation is represented by a local variable.
What can be done, is a check on the provided name, using a regex.
WDYT?
EDIT: I fixed the snippet since it was incorrect. However, the discussion remains the same and open.
The text was updated successfully, but these errors were encountered:
Do you mean that Spoon should allow only reference and element names, which can be java identifier? I like this idea. 👍
java identifier
Sorry, something went wrong.
I think we can easily enforce the usage of identifier as defined in the JLS through regexp in our different factories. I can take this one.
fix for issue INRIA#2237 reject invalide names
0b6f95e
7c953e0
Successfully merging a pull request may close this issue.
Hi all.
I am opening this thread to discuss the possibility of checking the name against the specification names.
Currently in Spoon, I can do the following:
This can lead to an inconsistency of the spoon model because the invocation is represented by a local variable.
What can be done, is a check on the provided name, using a regex.
WDYT?
EDIT: I fixed the snippet since it was incorrect. However, the discussion remains the same and open.
The text was updated successfully, but these errors were encountered: