Descriptionjs_ast: Avoid precedence issue with negative numbers as receivers at calls
This change makes LiteralNumber and DeferredNumber have a precedence based on the value so that the sign always binds to the number.
An alternative is to change constant generation to built the negation of a positive constant, but this approach does not work for deferred numbers since the sign is unknown at AST generation time.
R=sigmund@google.com
Committed: https://github.com/dart-lang/sdk/commit/2d60a9cf4562b1ae59bfc0cecd63039cc4180fd2
Patch Set 1 #
Messages
Total messages: 4 (1 generated)
|