running some SmallLint rules I found something odd in parse tree building.
When using the "s" syntax for ScaledDecimals (125.1225s4) in some method, the built parse tree takes s4 as a message sent to 125.1225, generating false positive Small Lint rules failures (like message s4 not implemented).
To reproduce create a class: ScaleDecimalParseTreeCase and a method:
- Code: Select all
ScaleDecimalParseTreeCase>>sample
^Array with: 522.12s4
and then inspect:
- Code: Select all
ScaleDecimalParseTreeCase parseTreeFor: #sample
the generated parse tree has an RBMessageNode (with s4 as message) instead an RBLiteralValueNode with the full scaled decimal literal.
I'm using VA 8.0.2 GA with the Refactoring Browser features loaded.
Regards,
Gabriel