Commit graph

8 commits

Author SHA1 Message Date
Cyrus Najmabadi ceeeb9cd11 Always preserve new lines for array and object literals and additional constructs like blocks. 2015-03-26 13:46:35 -07:00
Cyrus Najmabadi c371f1e521 Make the preservation of formatting an optional experimental compiler flag. 2015-03-08 19:06:55 -07:00
Cyrus Najmabadi 2a990a8685 Preserve newlines for conditional expressions 2015-03-07 13:50:26 -08:00
Cyrus Najmabadi 680e48f507 Preserve newlines on either side of a binary expression. 2015-03-07 12:54:12 -08:00
Cyrus Najmabadi 09c0c17937 Avoid unnecessary allocations in binary expression emit. 2015-02-25 13:59:16 -08:00
Cyrus Najmabadi b29fba4602 Preserve newlines and indentation for binary expressions when possible. 2015-02-20 21:53:44 -08:00
Cyrus Najmabadi a82289c8b4 Emit comments in a lot more places. 2015-01-22 15:58:00 -08:00
Sheetal Nandi 55952af304 Tests for conditional expression typeguards
•	In the true expression of a conditional expression, the type of a variable or parameter is narrowed by any type guard in the condition when true, provided the expression contains no assignments to the variable or parameter.
•	In the false expression of a conditional expression, the type of a variable or parameter is narrowed by any type guard in the condition when false, provided the expression contains no assignments to the variable or parameter.
2014-11-06 13:04:18 -08:00