Commit graph

10 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 09c0c17937 Avoid unnecessary allocations in binary expression emit. 2015-02-25 13:59:16 -08:00
Cyrus Najmabadi a228cb568c Merge branch 'master' into multiLineEmit2
Conflicts:
	tests/baselines/reference/computedPropertyNames11_ES5.js
	tests/baselines/reference/computedPropertyNames1_ES5.js
	tests/baselines/reference/computedPropertyNamesContextualType1_ES5.js
	tests/baselines/reference/computedPropertyNamesContextualType2_ES5.js
	tests/baselines/reference/computedPropertyNamesContextualType3_ES5.js
	tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.js
2015-02-21 15:00:23 -08:00
Cyrus Najmabadi b29fba4602 Preserve newlines and indentation for binary expressions when possible. 2015-02-20 21:53:44 -08:00
Cyrus Najmabadi 0fbbbffde6 Emit functions on a singline line if they were originally written on a single line. 2015-02-06 20:03:24 -08:00
Sheetal Nandi 6d6f27cdce Emit comments for class and constructor 2014-08-14 06:42:18 -07:00
Daniel Rosenwasser fe4c738b01 No longer emit trailing comma on object literals.
This was done because trailing commas in object literals are not accepted by ES3.

Fixes #271.
2014-07-28 11:37:36 -07:00
Daniel Rosenwasser 56f29e02d2 Preserve trailing commas on array- and object-literals. 2014-07-14 14:26:19 -07:00
Mohamed Hegazy 214df64e28 Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00