Logan Smyth
|
1bf76b0f33
|
Use .append to force-commit semicolons for empty statements.
|
2016-07-14 22:58:48 -07:00 |
|
Logan Smyth
|
bd9bb053c3
|
Flatten aux comment logic.
|
2016-07-14 22:58:48 -07:00 |
|
Logan Smyth
|
9483f4bd94
|
Drop old stale code.
|
2016-07-14 22:58:47 -07:00 |
|
Logan Smyth
|
b841d12c9e
|
Initialize inForStatementInitCounter as a public var.
|
2016-07-14 22:58:47 -07:00 |
|
Logan Smyth
|
e056c0b9d6
|
Use the presence of _whitespace to toggle its use.
|
2016-07-14 22:58:47 -07:00 |
|
Logan Smyth
|
6a74731c6b
|
Drop the private version of ._format
|
2016-07-14 22:58:47 -07:00 |
|
Logan Smyth
|
55a1ffd266
|
Mark a bunch of methods private.
|
2016-07-14 22:58:46 -07:00 |
|
Logan Smyth
|
6b7f3cc4cd
|
Inline comment generation function.
|
2016-07-14 21:55:08 -07:00 |
|
Logan Smyth
|
475581dc66
|
Ditch the tiny Position class.
|
2016-07-14 21:55:08 -07:00 |
|
Logan Smyth
|
8379c21939
|
Drop unneeded condition in SourceMap class.
|
2016-07-14 21:54:47 -07:00 |
|
Henry Zhu
|
7076c675d9
|
v6.11.3
|
2016-07-12 22:33:58 -04:00 |
|
Logan Smyth
|
57ef3ea8eb
|
Merge pull request #3567 from loganfsmyth/fix-generator-buffer-getlast
Use the first item in the queue since it is the most recent.
|
2016-07-06 23:45:46 -07:00 |
|
Logan Smyth
|
11d49db23b
|
Use the first item in the queue since it is the most recent.
|
2016-07-06 23:30:45 -07:00 |
|
Justin Ridgewell
|
9cdb24157e
|
Remove unused Position#unshift
Not only is it unused, it'll break things if you push a newline since it doesn't set a new `#column` value.
|
2016-07-06 21:58:02 -04:00 |
|
Logan Smyth
|
65a677decd
|
Maintain a queue to allow deletion of whitespace/semicolons without accessing buf.
|
2016-07-05 21:03:29 -07:00 |
|
Logan Smyth
|
cb60808500
|
Make buffer a property for managing the token queue.
|
2016-07-05 21:02:46 -07:00 |
|
Logan Smyth
|
c5a6c5c291
|
Pass values directly to avoid object usage.
|
2016-07-05 21:01:33 -07:00 |
|
Logan Smyth
|
abb9618e8c
|
Drop array support from endsWith.
|
2016-07-05 19:44:51 -07:00 |
|
Logan Smyth
|
f908f3fc88
|
Use 'push' for all cases.
|
2016-07-04 22:49:59 -07:00 |
|
Logan Smyth
|
caef91672d
|
Remove unnecessary passthrough function.
|
2016-07-04 22:49:59 -07:00 |
|
Logan Smyth
|
578f48134b
|
Remove removeLast usage.
|
2016-07-04 22:49:59 -07:00 |
|
Logan Smyth
|
80cd3ca331
|
Drop one usage of removeLast.
|
2016-07-04 22:49:59 -07:00 |
|
Logan Smyth
|
d6b1e36d49
|
Make the 'catchUp' call implicit to source location updates.
|
2016-07-04 22:49:58 -07:00 |
|
Logan Smyth
|
3680d10b6f
|
Centralize position tracking into buffer.
|
2016-07-04 22:42:28 -07:00 |
|
Logan Smyth
|
177c092496
|
Remove sideeffectful position mutation.
|
2016-07-02 15:38:05 -07:00 |
|
Logan Smyth
|
e4da8cfea5
|
Use the standard newline function.
|
2016-07-02 15:38:05 -07:00 |
|
Henry Zhu
|
470635adb0
|
v6.11.0
|
2016-06-26 20:21:26 -04:00 |
|
Sam Pepose
|
3ee06187d5
|
Fixed incorrect newlines with Flow object types (#3548)
|
2016-06-23 20:38:05 -04:00 |
|
Sam Pepose
|
7d83147e16
|
Added semicolon
|
2016-06-22 21:21:53 -07:00 |
|
Sam Pepose
|
199a612131
|
Fixed incorrect printing of array of nullable flow type
|
2016-06-22 20:33:43 -07:00 |
|
Henry Zhu
|
bfc90c975d
|
v6.10.2
|
2016-06-17 17:45:16 -04:00 |
|
Logan Smyth
|
df2c3f3d25
|
Use the common space helper everywhere to ensure we get the smallest output possible.
|
2016-06-16 22:00:24 -07:00 |
|
Logan Smyth
|
5c74ebb87e
|
Remove unneeded space check.
|
2016-06-16 22:00:24 -07:00 |
|
Logan Smyth
|
1514d0a1ad
|
Drop some space-insertion logic.
|
2016-06-16 22:00:23 -07:00 |
|
Logan Smyth
|
39896b4d91
|
Automatically prepend a space when writing a word immediately after a word.
|
2016-06-16 22:00:23 -07:00 |
|
Logan Smyth
|
4286cb4f2a
|
Explicitly label standalone tokens and words.
|
2016-06-16 22:00:23 -07:00 |
|
Logan Smyth
|
e702e67233
|
Split all of the pushes into individual tokens.
|
2016-06-16 22:00:23 -07:00 |
|
Logan Smyth
|
22e2c88269
|
Drop the unneeded noIndent function param.
|
2016-06-16 22:00:23 -07:00 |
|
Logan Smyth
|
f566700657
|
Avoid processing indentation for every pushed string.
|
2016-06-16 21:59:51 -07:00 |
|
Logan Smyth
|
8336aa52e8
|
Split all of the separators into functions.
|
2016-06-16 20:31:19 -07:00 |
|
Logan Smyth
|
3e1a661eb6
|
Use the general list handlers and the default separator.
|
2016-06-16 20:31:19 -07:00 |
|
Logan Smyth
|
315c075419
|
Remove the unnecessary push/_push division.
|
2016-06-16 20:31:19 -07:00 |
|
Logan Smyth
|
528128f62d
|
Avoid looking for raw values for all nodes.
|
2016-06-16 20:31:19 -07:00 |
|
Logan Smyth
|
710f151d31
|
Use the standard space helper for comment space.
|
2016-06-16 20:31:19 -07:00 |
|
Logan Smyth
|
680fcc16d7
|
Standardize on .endsWith
|
2016-06-16 20:31:19 -07:00 |
|
Logan Smyth
|
2f790889eb
|
Make sure to roll back the generated position markers when trimming spaces.
|
2016-06-16 20:31:19 -07:00 |
|
Logan Smyth
|
9ddf9aabfc
|
Don't track position when sourcemaps are off.
|
2016-06-16 20:31:19 -07:00 |
|
Logan Smyth
|
61e3b1d314
|
Remove incorrect function/class check.
|
2016-06-16 20:31:19 -07:00 |
|
Logan Smyth
|
0be2f1cf48
|
Remove unnecessary ensureSemicolon.
|
2016-06-16 20:31:19 -07:00 |
|
Logan Smyth
|
67763085ab
|
Be consistent with semicolons.
|
2016-06-16 20:31:19 -07:00 |
|