1819 Commits

Author SHA1 Message Date
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
James Kyle
c561312bee Adds strictMode option to strict-mode transform (#3562) 2016-07-02 13:27:57 -07:00
Logan Smyth
52683f0018 Use the proper transform plugin for preset-es2016. (#3563) 2016-07-02 14:46:38 -04:00
Logan Smyth
172d81d4fe v6.11.2 2016-06-28 23:14:43 -07:00
Logan Smyth
231f27f170 Fix non-unique 'ref' binding name - fixes T7468 2016-06-28 19:16:44 -07:00
Henry Zhu
7b9749233e v6.11.1 2016-06-27 17:19:48 -04:00
Forbes Lindesay
3bc3c9a3ed Babel types docs (#3549)
* Update babel-types documentation

Mostly just re-run generate-babel-types-docs but also update for some
more validator types.

* Rebuild docs as part of "build-dost"

* Include fields not in BUILDER_KEYS in babel-types docs

These fields don’t have a shorthand for you to pass them to the helper
method, but they are still useful to know about.

* Fields not included in BUILDER_KEYS cannot be "required"

We don’t ever type-check fields not in BUILDER_KEYS so they are never
required.
2016-06-27 17:01:58 -04:00
Henry Zhu
39f645768c Remove jsx-self from react preset (#3552) 2016-06-27 11:47:37 -04:00
Henry Zhu
470635adb0 v6.11.0 2016-06-26 20:21:26 -04:00
Logan Smyth
856b1f2923 Fix some mistakes in the jsx-self transform. 2016-06-26 13:52:07 -07:00
Sam Pepose
3ee06187d5 Fixed incorrect newlines with Flow object types (#3548) 2016-06-23 20:38:05 -04:00
Mathias Bynens
115a6543ab Update to regexpu-core@2.0.0 for ES2016 compliance (#3338)
regexpu-core v2.0.0 matches the ES2016 spec. See 9b10d2a597.
2016-06-23 12:03:03 -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
Simon Lydell
3d77ad9381 babel-code-frame: Upgrade to js-tokens@2 (#3533)
That version brings ES2016 support. However, the difference in syntax
highlighting is not distinguishable, because both `*` and `**` get the
same color.
2016-06-22 13:23:21 -04:00
Sergey Rubanov
8fef2bc568 Add es2016 preset (#3531) 2016-06-22 12:16:49 -04:00
Jacob Rask
17ce0a57c5 Promote trailing-function-commas to stage 3 (#3522)
See https://github.com/tc39/proposals
2016-06-22 12:16:14 -04:00
Henry Zhu
93299d9bc4 add new package to react preset package.json 2016-06-22 12:14:36 -04:00
Sebastian McKenzie
9229225f21 Merge pull request #3540 from jimfb/jsx-self
Added jsx-self babel transform plugin
2016-06-22 17:11:25 +01:00
jim
7d0c4ecf17 Added jsx-self babel transform plugin 2016-06-22 09:05:48 -07:00
Logan Smyth
faf024ad44 v6.10.4 2016-06-21 09:43:33 -07:00
A2ZH
49d36e291d update minimatch v3.0.2 2016-06-21 01:01:42 +08:00
Sebastian McKenzie
b2390cca02 deopt on recursion in path.evaluate - fixes T7397 2016-06-19 22:08:39 +01:00
Logan Smyth
cc22b1cc23 v6.10.3 2016-06-18 16:55:21 -07:00
Logan Smyth
2ba27c73d7 Allow empty 'export {};' statements - fixes T7439 2016-06-18 12:41:44 -07:00
Henry Zhu
bfc90c975d v6.10.2 2016-06-17 17:45:16 -04:00
Daniel Tschinder
d7c0fbdf5b "name" should not be visited for TypeParameter (#3529)
name is a string and does not need to be visited
2016-06-17 17:21:23 -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