-
Notifications
You must be signed in to change notification settings - Fork 4
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
Parser should discard literal suffix in primitiveValue #125
Comments
I agree that it should create the correct entity ;-) The idea is keeping the model as close to the source code as possible without making too much assumptions on how Java interpret things |
And actually, for FASTJavaLongLiteral, it is never created by the Importer, so it is dead code |
The parser does not do that at the moment :/ (#124 and #126)
Where is the dead code? I think it is missing code. |
Still not convince this belongs in the parser or that we should have a special AST node to differentiate integers from longs (or floats from doubles). |
JDT only uses NumberLiteral. |
Agree with the idea of only one NumberLiteral I am closing this issue and creating a new one (#157) |
When parsing a literal value with a suffix (like
2L
or2.0f
), the parser should use the suffix to create the correct entity, but it should not be included in theprimitiveValue
field.The following:
currently gives the primitiveValue
2.0f
, but it should give2.0
.The suffix logic is already implemented in the exporter, resulting in double suffixes, which is an error.
The text was updated successfully, but these errors were encountered: