Sebastian McKenzie
5f1c3c3b8d
remove unnecessary csp makePredicate - fixes #1267
2015-04-15 15:13:12 -07:00
Sebastian McKenzie
8ee54e0756
Mark function token as able to start an expression
2015-04-14 08:18:06 -07:00
Sebastian McKenzie
28589d459d
make illegal LHS pattern error messages more user friendly
2015-04-13 16:40:13 -07:00
Sebastian McKenzie
075ff67aca
make parenthesized array patterns illegal - cc @michaelficarra
2015-04-13 16:16:57 -07:00
Sebastian McKenzie
25a3bbce91
only make parenthesized object patterns illegal - fixes #1254 , ref jshint/jshint#2269
2015-04-13 15:44:54 -07:00
Sebastian McKenzie
eed185c4dc
remove useless kind on import declarations
2015-04-13 14:55:46 -07:00
Sebastian McKenzie
e15f8a79d6
make parsing of decorators stateless - fixes shuhei/babel-angular2-app#4
2015-04-13 08:26:51 -07:00
Sebastian McKenzie
7944e3b1fa
Merge pull request #1215 from AluisioASG/es7-trailing-function-commas
...
ES7 trailing function commas
2015-04-12 19:17:02 -07:00
Sebastian McKenzie
85f2e79f95
add support for object literal decorators - fixes #1154
2015-04-11 16:30:55 -07:00
Sebastian McKenzie
82384f4761
parse await expression as a unary instead of an assignment - fixes #1225
2015-04-10 15:23:11 -07:00
Sebastian McKenzie
4f41b7c5e5
set canBeArrow to true when parsing async functions
2015-04-10 13:51:30 -07:00
Sebastian McKenzie
d0bf19681a
update to latest acorn
2015-04-10 13:44:50 -07:00
Sebastian McKenzie
3b0b31ef9e
don't emit tokens when doing a lookahead
2015-04-09 06:44:16 -07:00
Sebastian McKenzie
ab40459198
fix order of parameter type annotation parsing - fixes #1168
2015-04-06 06:19:13 -07:00
Aluísio Augusto Silva Gonçalves
58284c5002
[ES7] Trailing comma in function parameter list
...
Currenly a stage 1 proposal.
See https://github.com/jeffmo/es-trailing-function-commas .
2015-04-06 09:10:44 -03:00
Sebastian McKenzie
a2a8ebbe95
fix missing this in acorn parseExprAtom
2015-04-05 03:26:41 +10:00
Sebastian McKenzie
9a3e36055d
fix es7 export extensions compound list
2015-04-01 23:21:16 +11:00
Sebastian McKenzie
2fffffe780
fix paramless async calls
2015-04-01 13:57:59 +11:00
Sebastian McKenzie
4280c2d846
fix incorrect interpreation of export default shorthand, update to new ast definitions - #1091
2015-03-30 06:08:37 +11:00
Sebastian McKenzie
f794e360f0
add support for export extensions https://github.com/leebyron/ecmascript-more-export-from - closes #1091
2015-03-30 03:38:14 +11:00
Sebastian McKenzie
d93a315df4
fix class decorator methods
2015-03-29 19:30:34 +11:00
Sebastian McKenzie
54fa079bf4
fixes #1114
...
- The visitor keys for `ObjectTypeAnnotation`s were incorrect so those nodes weren't being traversed so comments weren't attached for them.
- The type parser wasn't eating the semicolons for the nodes so the `end` location of each of the type properties wasn't accurate which threw off the code generation newline algorithm.
- Type properties hadn't been given the `UserWhitespacable` alias.
2015-03-29 16:44:36 +11:00
Sebastian McKenzie
aeb0cfcbbe
remove es7.classProperties check from parser
2015-03-28 03:59:01 +11:00
Sebastian McKenzie
ddd173a4b3
restructure testing infrastructure to be more modular
2015-03-28 01:21:48 +11:00
Sebastian McKenzie
5f6a216809
add support for decorators before class exports
2015-03-28 00:22:38 +11:00
Sebastian McKenzie
f5f77d4720
better parsing of decorators - support class expressions
2015-03-26 00:58:38 +11:00
Sebastian McKenzie
e52af24999
add class property initializers, add more TraversalPath flexibility with additional node injection method
2015-03-24 03:34:34 +11:00
Sebastian McKenzie
6d87a99d1d
make method definitions with expression bodies illegal - fixes #1066
2015-03-23 20:24:32 +11:00
Sebastian McKenzie
2cbbd86552
remove acorn compiled source
2015-03-22 04:09:18 +11:00
Sebastian McKenzie
37072737b9
add support for class decorators
2015-03-22 04:07:38 +11:00
Sebastian McKenzie
6128fd9687
add do expressions
2015-03-22 04:06:15 +11:00
Logan Smyth
01b39d67f0
Merge acorn 1.0.0 (formerly 'update to modular acorn' in original history).
2016-03-14 22:47:51 -07:00
Sebastian McKenzie
0d143f005f
update to latest acorn, better array shortcuts, don't add code frame to error message
2016-03-14 22:40:33 -07:00
Sebastian McKenzie
f830892ab8
fix modules generation logic and remove dead node types
2016-03-14 22:40:24 -07:00
Sebastian McKenzie
7c84db45fd
more estree updates - finish flow parsing
2016-03-14 22:40:16 -07:00
Sebastian McKenzie
57af08bea8
move acorn into vendor
2016-03-14 22:39:57 -07:00
Logan Smyth
16e8224ce6
Merge acorn 0.12.1 and acorn-babel (formerly "embed acorn" in the original git history).
2016-03-14 22:39:24 -07:00
Marijn Haverbeke
44c0231c09
Don't require a semicolon after 'export default [function|class] ...'
...
Issue #225
2015-03-20 22:40:51 +01:00
Marijn Haverbeke
1fc1d32e1f
Add some notes on plugins to the README
2015-03-20 21:29:50 +01:00
Marijn Haverbeke
35d0b80976
Properly export acorn.plugins
2015-03-20 21:12:26 +01:00
Marijn Haverbeke
a1022f38e1
Fix trying to run .sh file with node in prepublish script
2015-03-20 21:05:14 +01:00
Marijn Haverbeke
5d7f4d7a23
Update README
2015-03-20 21:01:05 +01:00
Marijn Haverbeke
659f2c9091
Teach the walker about Super and MetaProperty
2015-03-20 17:51:50 +01:00
Marijn Haverbeke
2ed8f8f2b8
Fix infinite loop introduced by 685b51e
2015-03-20 17:49:51 +01:00
Marijn Haverbeke
013e48439f
Update tools/generate-identifier-regex.js
...
So that it can also spit out the astral maps.
2015-03-20 17:47:46 +01:00
Marijn Haverbeke
685b51e0ae
Make the loose parser's parseIdent actually returns an identifier with a name
2015-03-20 17:36:47 +01:00
Marijn Haverbeke
0fee7a395e
Fix the way 'npm test' loads the library
2015-03-20 17:35:51 +01:00
Ingvar Stepanyan
864268abb6
Add support for meta-properties.
...
estree/estree#32
2015-03-20 17:35:37 +01:00
Ingvar Stepanyan
921e45ab2b
SuperExpression -> Super
2015-03-20 17:23:01 +01:00
Marijn Haverbeke
e88a5431db
Allow init-less destructing bindings in for/in and for/of
2015-03-20 17:19:35 +01:00