Sebastian McKenzie
0278f5a2ba
Merge pull request #3107 from MakeNowJust/fix/t6675-2
...
Fixed T6675
2015-12-12 01:30:05 +11:00
Henry Zhu
d06cfe63c2
eslint: add space-after-keywords
2015-12-06 11:30:07 -05:00
Amjad Masad
9c20ace184
Add support for null literal type
2015-12-03 23:58:25 -08:00
TSUYUSATO Kitsune
922c621ffb
Fixed T6675
...
https://phabricator.babeljs.io/T6675 .
2015-11-24 22:39:50 +09:00
Aliaksei Shytkin
47871f80dd
Make arrow functions to work with multiple args and flow return type (fixes T2422)
2015-11-23 15:20:16 +03:00
Sebastian McKenzie
983ca5c71f
add function.sent
2015-11-17 23:02:21 -08:00
Daniel Lo Nigro
0076204f80
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
Jordan Klassen
3b68a58e0c
Remove unused second parameter of isIdentifierStart
2015-11-12 22:45:35 -08:00
Sebastian McKenzie
bab696c365
fix __proto__ clashes in parser in old v8
2015-11-08 05:34:11 -08:00
Sebastian McKenzie
592193321d
fix defaults on type annotated arrow function params - fixes #2493
2015-11-05 09:49:03 +00:00
Sebastian McKenzie
0e76a5ace1
fix existential type param parsing
2015-11-03 20:04:55 +00:00
Sebastian McKenzie
7dc1b4e7e9
add ExistentialTypeParam - fixes #2587
2015-11-03 13:48:03 +00:00
Sebastian McKenzie
49cbd27441
simplify Parser::semicolon method
2015-11-03 11:46:11 +00:00
Sebastian McKenzie
b486dfb675
add lineBreak test to tt.name.updateContext - fixes #2591
2015-11-03 11:46:01 +00:00
Sebastian McKenzie
d8b17a9eaa
add support for async generator concise methods - fixes #2603
2015-11-03 11:19:04 +00:00
Sebastian McKenzie
72b6e42b34
fix object rest/spread in arrow function params - fixes #2631
2015-11-03 11:14:12 +00:00
Sebastian McKenzie
e62a00df50
rename NumberLiteral to NumericLiteral and RegexLiteral to RegExpLiteral
2015-11-03 01:19:35 +00:00
Sebastian McKenzie
72f384bb29
disallow invalid async function forms inside object literals - fixes #2629
2015-11-02 08:00:01 +00:00
Sebastian McKenzie
8748ff0802
update exponentiation operator precedence - fixes #2431
2015-10-30 23:14:10 +00:00
Sebastian McKenzie
7012116f4e
fix parser bug where arrow functions have a higher precedence than they should - fixes #2118
2015-10-30 22:50:53 +00:00
Sebastian McKenzie
ae7d5367f1
6.0.0
...
I'm extremely stupid and didn't commit as I go. To anyone reading this
I'm extremely sorry. A lot of these changes are very broad and I plan on
releasing Babel 6.0.0 today live on stage at Ember Camp London so I'm
afraid I couldn't wait. If you're ever in London I'll buy you a beer
(or assorted beverage!) to make up for it, also I'll kiss your feet and
give you a back massage, maybe.
2015-10-29 17:51:24 +00:00
Sebastian McKenzie
20f643b419
type annotate babylon
2015-09-23 15:59:41 +01:00
Sebastian McKenzie
4996e6bc7f
add parser util addExtra method
2015-09-15 06:19:35 +01:00
Sebastian McKenzie
fbda587964
use extra.parenthesized rather than parenthesizedExpression
2015-09-15 06:19:26 +01:00
Sebastian McKenzie
25aa6da989
add hasFeature util method
2015-09-15 06:18:23 +01:00
Sebastian McKenzie
c31d2afc7f
remove weird acorn conditional formatting
2015-09-15 06:18:15 +01:00
Sebastian McKenzie
76eb259ea8
only allow identifiers as rest expressions
2015-09-15 06:18:04 +01:00
Sebastian McKenzie
bcab30e606
add RestProperty node
2015-09-15 06:17:45 +01:00
Sebastian McKenzie
eae82799e6
loop over all directives to check for use strict
2015-09-15 06:16:57 +01:00
Sebastian McKenzie
8a13465f80
use hasFeature rather than directly looking up options
2015-09-15 06:16:46 +01:00
Sebastian McKenzie
dae16fa192
add directives property to Program and BlockStatement
2015-09-15 06:16:07 +01:00
Sebastian McKenzie
5ea5d47d7f
add babylon hasFeature util method
2015-09-15 06:15:19 +01:00
Sebastian McKenzie
f33c96c276
make export default anoynmous class/function statements - fixes #2205
2015-09-01 05:34:11 +01:00
Sebastian McKenzie
8d7b3c462f
unoverload Literal AST node
2015-09-01 04:49:16 +01:00
Sebastian McKenzie
061ba7b2a2
Merge remote-tracking branch 'origin/master' into development
...
Conflicts:
packages/babel/scripts/build-dist.sh
2015-08-27 11:12:00 -07:00
Cesar Andreu
c44858207e
Start ObjectTypeProperty's optional property as false in each loop
2015-08-27 00:07:26 -04:00
Sebastian McKenzie
559272bb02
fix weird legacy acorn formatting
2015-08-24 15:31:41 -04:00
Sebastian McKenzie
1de8a57102
never attempt to represent regexes natively
2015-08-24 15:31:30 -04:00
Sebastian McKenzie
e382d34ed2
parser: don't mutate or clone state arrays when doing a lookahead - fixes #2211
2015-08-15 19:07:42 -04:00
Sebastian McKenzie
a179f9a48b
fix various bugs surfaced by the esprima test suite, remove some incorrect tests
2015-08-11 16:58:20 +01:00
Sebastian McKenzie
57fd619c76
Merge branch 'master' into development
2015-08-11 01:05:04 +01:00
Sebastian McKenzie
415d1271b9
add esprima tests and fix bugs picked up by it
2015-08-11 00:59:15 +01:00
Henry Zhu
04aedf37b4
fix unexpected token issue for regex after block case
...
- Ex: `if (1) {} /foo/`
Fixes babel/babel-eslint#161
Ref marijnh/acorn#289
2015-08-10 19:03:13 -04:00
Sebastian McKenzie
2afad4b7e9
forward all arguments to parseClassId in flow parser plugin
2015-08-10 13:10:32 +01:00
Sebastian McKenzie
4c71038bce
fix export default function expression disambiguation - fixes #2189
2015-08-10 13:04:08 +01:00
Sebastian McKenzie
8128b35e25
properly distinguish shorthand async keys that are the last property - fixes #2176
2015-08-06 19:33:48 +01:00
Sebastian McKenzie
68d750120a
fix patterns with async keys - fixes #2171
2015-08-05 23:22:31 +01:00
Sebastian McKenzie
5c2b22144c
Merge branch 'master' of github.com:babel/babel
2015-08-05 22:45:00 +01:00
Sebastian McKenzie
ef6ecbefaf
style nits
2015-08-05 21:45:22 +01:00
Sebastian McKenzie
7e80cac728
remove operator property from AssignmentPattern
2015-08-05 21:45:11 +01:00