1413 Commits

Author SHA1 Message Date
Henry Zhu
2f00b4c329 babylon: fix error location for class properties with a missing semicolon 2016-01-06 18:42:26 -05:00
Henry Zhu
359b8533b6 v6.4.0 2016-01-06 15:34:12 -05:00
Sebastian McKenzie
6c79639801 Merge pull request #3225 from hzoo/cp-semi
`babylon`: throw parse error if class properties do not have a semico…
2016-01-06 15:22:37 +00:00
Sam Goldman
541b576c7a Guard export interface against isExportDefaultSpecifier 2016-01-05 17:28:21 -08:00
Sam Goldman
a04948f70f Add export interface Flow syntax support
An interface export is just like a type export. In fact, it's a syntax affordance which makes the following equivalent:

```javascript
interface I_ { ... }
export type I = I_;
```

```javascript
export interface I { ... }
```

See facebook/flow#1145
2016-01-05 15:57:45 -08:00
Sam Goldman
bd5c1a5b1b Add support for "declare interface" Flow syntax
This has been a feature in Flow for a long time (couldn't easily find a
specific commit adding this). Interfaces are basically undocumented, though, so
it's easy to see how this was missed.
2016-01-04 11:50:12 -08:00
Sam Goldman
0980819346 Add support for "declare type" Flow syntax
See facebook/flow#1105
2016-01-04 11:42:43 -08:00
Henry Zhu
e849c62144 babylon: throw parse error if class properties do not have a semicolon (fixes T6873) 2015-12-30 14:01:46 -05:00
Jesse McCarthy
b1da92e8cb Don't make directive from parenthesized string. 2015-12-28 11:04:33 -05:00
Jesse McCarthy
c5a8d4c5b0 Add non-directive fixture.
(Failing.)
2015-12-28 11:04:33 -05:00
Sebastian McKenzie
326e157e5d Merge pull request #3203 from samwgoldman/flow-mixins-6.x
Add support for mixins to Babel 6.x
2015-12-27 21:04:40 +00:00
Sebastian McKenzie
c72ef3755a stop people from patching babylon by building it 2015-12-24 03:58:52 +00:00
Sam Goldman
137abcaf7a Add support for mixins to Babel 6.x 2015-12-23 16:09:12 -05:00
Sam Goldman
f0fd729883 Add support for this type to Babel 6.x 2015-12-23 13:54:57 -05:00
Amjad Masad
939ad92deb v6.3.26 2015-12-22 23:11:59 -08:00
Amjad Masad
1d82e48d36 Merge pull request #3190 from hzoo/remove-await-star
Remove await* from babel-generator, add parsing error to babylon - (fixes T6688)
2015-12-22 22:57:23 -08:00
Henry Zhu
c7bdf7fc63 remove all property, fixup tests 2015-12-23 00:02:02 -05:00
Amjad Masad
75e2a398af v6.3.25 2015-12-21 13:59:11 -08:00
Henry Zhu
7bac3627fe Remove await* from babel-generator, add parsing error to babylon - (fixes T6688) 2015-12-19 23:15:09 -05:00
TSUYUSATO Kitsune
8d8f75a5b8 Fix ignoring previous strict mode after twice "use strict"
For example:

    var foo = function () {
      "use strict";
      "use strict";
      // there is inside of strict mode,
      // so `0123` (octal number) occurs a syntax error.
    };
    // there is outside of strict mode,
    0123; // so left is valid syntax.
    // however:
    //   SyntaxError: Invalid number (8:0)

I fixed it and add the test case.
2015-12-19 09:26:10 +09:00
Amjad Masad
2304ce0b4a v6.3.21 2015-12-18 00:23:03 -08:00
Marshall Roch
4a140af08d Upgrade to flow 0.20.0 2015-12-17 12:49:48 -08:00
Amjad Masad
f350853db9 v6.3.20 2015-12-16 12:24:45 -08:00
Henry Zhu
fa23b4359b add functionBind to babylon plugins readme 2015-12-16 09:47:08 -05:00
Amjad Masad
b0eb0f3ff9 v6.3.18 2015-12-13 23:01:37 -08:00
Sebastian McKenzie
694ad8eb8a Merge pull request #3107 from MakeNowJust/fix/t6675-2
Fixed T6675
2015-12-12 01:30:05 +11:00
Henry Zhu
15e02657fa v6.3.15 2015-12-06 11:31:46 -05:00
Henry Zhu
d833e8bbee eslint: add space-after-keywords 2015-12-06 11:30:07 -05:00
Henry Zhu
b3de3c2514 v6.3.14 2015-12-04 13:52:36 -05:00
Sebastian McKenzie
80a10e144b Merge branch 'master' of github.com:babel/babel 2015-12-04 23:17:11 +11:00
Sebastian McKenzie
e81a5dc8fe v6.3.13 2015-12-04 22:56:51 +11:00
Sebastian McKenzie
a5cd87c401 v6.3.12 2015-12-04 22:56:13 +11:00
Amjad Masad
8716fb6f3f Test name, and remove todos 2015-12-04 00:12:37 -08:00
Amjad Masad
e3da84bcc3 Add support for null literal type 2015-12-03 23:58:25 -08:00
Amjad Masad
5a15231cfe v6.3.0 2015-11-30 14:58:30 -08:00
TSUYUSATO Kitsune
dc596d73d3 Fixed T6675
https://phabricator.babeljs.io/T6675.
2015-11-24 22:39:50 +09:00
Aliaksei Shytkin
5e987cd46e Make arrow functions to work with multiple args and flow return type (fixes T2422) 2015-11-23 15:20:16 +03:00
Sebastian McKenzie
59ec2b2dfb v6.2.0 2015-11-18 20:33:47 -08:00
Sebastian McKenzie
d79d0cf73d add function.sent 2015-11-17 23:02:21 -08:00
Daniel Lo Nigro
20a483cd58 Fix Flow.
Removed `@flow` annotation from files that don't actually pass Flow check at the moment. These will be added back file by file once the files are properly converted to use Flow.

Closes #3064
2015-11-15 21:30:22 -08:00
Sebastian McKenzie
a3fe3933da v6.1.21 2015-11-13 16:57:03 -08:00
Jesse McCarthy
81edfcbd93 Correct option name: features => plugins. 2015-11-13 10:25:40 -05:00
Sebastian McKenzie
c985006597 v6.1.20 2015-11-13 03:38:54 -08:00
Jordan Klassen
021688e1c0 Remove unused second parameter of isIdentifierStart 2015-11-12 22:45:35 -08:00
Sebastian McKenzie
3017999b3c v6.1.18 2015-11-12 13:46:30 -08:00
Sebastian McKenzie
7625e61b97 v6.1.17 2015-11-12 13:40:25 -08:00
Sebastian McKenzie
e28e01bb86 v6.1.16 2015-11-12 13:33:20 -08:00
Sebastian McKenzie
d2fdd1f673 v6.1.15 2015-11-12 12:15:47 -08:00
Sebastian McKenzie
a2aa3583b6 v6.1.14 2015-11-12 12:01:18 -08:00
Sebastian McKenzie
8f9c531531 v6.1.13 2015-11-12 11:57:45 -08:00