dart-sdk/pkg/js_ast
Stephen Adams 2d60a9cf45 js_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

Review URL: https://codereview.chromium.org/1438633002 .
2015-11-10 19:02:05 -08:00
..
lib js_ast: Avoid precedence issue with negative numbers as receivers at calls 2015-11-10 19:02:05 -08:00
test Check for one-to-many source mappings. 2015-08-17 09:57:57 +02:00
LICENSE Move js_ast library to its own package under pkg 2015-02-25 01:27:01 +00:00
pubspec.yaml Move js_ast library to its own package under pkg 2015-02-25 01:27:01 +00:00
README.md Move js_ast library to its own package under pkg 2015-02-25 01:27:01 +00:00

js_ast

A library for creating JavaScript ASTs from templates.