115 Commits

Author SHA1 Message Date
Sebastian McKenzie
20f643b419 type annotate babylon 2015-09-23 15:59:41 +01:00
Sebastian McKenzie
c44fd54621 flesh out babylon readme 2015-09-15 06:25:52 +01:00
Sebastian McKenzie
78fafdf18b add babel-runtime to babylon dependencies 2015-09-15 06:20:21 +01:00
Sebastian McKenzie
800b039d02 add babylon description 2015-09-15 06:20:03 +01:00
Sebastian McKenzie
c751771889 add dead simple babylon bin 2015-09-15 06:19:49 +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
e1575c468c rename features in babylon tests 2015-09-15 06:13:11 +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
faa5cbbd08 Merge branch 'master' into development
Conflicts:
	packages/babel/package.json
	packages/babel/src/traversal/scope/index.js
2015-08-27 16:42:21 -07:00
Sebastian McKenzie
442f1173d2 v5.8.23 2015-08-27 16:38:34 -07: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
Cesar Andreu
fe86c0a4e9 Add failing flow ObjectTypeProperty test 2015-08-26 06:51:12 -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
8c44aa4874 add more jsx tests 2015-08-12 02:57:18 +01: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
6429cc69b5 v5.8.22 2015-08-11 01:00:54 +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
f60df12449 fix broken test from regex-after-block 2015-08-10 19:31:26 -04: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
314a851adb v5.8.21 2015-08-05 22:22:57 +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
Sebastian McKenzie
a1ca4822dc fix handling of flow method shorthand - fixes #2169 2015-08-05 21:42:15 +01:00
Naman Goel
df9b0b818f fix typos
Found some typos while reading the code.
2015-08-05 00:26:52 +02:00
Sebastian McKenzie
dea349c4d4 check valid function/class token when parsing export default before converting to a declaration - fixes #2145 2015-08-02 21:36:52 +01:00
Sebastian McKenzie
855ee71d59 add support for export types 2015-07-31 23:34:45 +01:00
Sebastian McKenzie
8352730ff5 v5.8.20 2015-07-31 21:24:00 +01:00
Sebastian McKenzie
aee240c73e put containsEsc on state rather than as a local variable 2015-07-31 12:44:54 +01:00
Sebastian McKenzie
f97e201b56 fix linting error and add missing tests 2015-07-30 23:47:59 +01:00
Sebastian McKenzie
436874dac8 add support for boolean flow literals - fixes #2127 2015-07-30 23:44:36 +01:00
Sebastian McKenzie
ba2d18f025 add acorn license - cc @RReverser 2015-07-30 12:57:23 +01:00