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
Marijn Haverbeke
35c417d02b
Remove remnants of docco-based homepage
2015-03-20 17:05:23 +01:00
Marijn Haverbeke
f538706db3
Code style -- less semicolons, more let variables
2015-03-20 17:00:32 +01:00
Marijn Haverbeke
6dd254d999
Tie everything together in the new build system
2015-03-20 16:36:24 +01:00
Marijn Haverbeke
cf613ce287
Split up the loose parser, set up a build script
2015-03-20 14:41:55 +01:00
Marijn Haverbeke
dd89c6e112
Make loose parser work with minor interface changes introduced by modularization
2015-03-20 12:04:33 +01:00
Marijn Haverbeke
a1fe3a1859
Finish splitting up main parser
2015-03-20 11:47:31 +01:00
Marijn Haverbeke
7b05e660b4
Move location-related code into location.js
2015-03-19 16:28:28 +01:00
Marijn Haverbeke
fec42cb596
Move tokenizer into modules
2015-03-19 16:17:43 +01:00
Marijn Haverbeke
93b919c1a0
Split out identifier-related code
2015-03-19 15:49:58 +01:00
Marijn Haverbeke
9808459940
Start on ES6 port
2015-03-19 15:40:12 +01:00
Mathias Bynens
575421b3c2
Make readRegexp more tolerant
2015-03-19 14:48:43 +01:00
Marijn Haverbeke
9673146cc1
Verify that property name can be bound to in short-hand object pattern properties
...
Issue #221
2015-03-19 14:05:16 +01:00
Marijn Haverbeke
a45172e044
Unify checkLVal and checkFunctionParam
2015-03-19 13:42:26 +01:00
Marijn Haverbeke
0a755156a8
Ignore backslash-escapes in identifiers in ES6 mode
2015-03-19 13:11:17 +01:00
Marijn Haverbeke
5d5b8eb3c8
Don't crash when converting missing array elements to assignable
...
Closes #220
2015-03-19 12:58:34 +01:00
Marijn Haverbeke
b6e8310848
Require an initalization value when let/var/const-declaring a complex pattern
...
Closes #222
2015-03-19 12:46:36 +01:00
Marijn Haverbeke
a75a685610
Add a startsExpr property to token types, use it to properly parse yield
...
Issue #219
2015-03-19 12:34:41 +01:00
Ingvar Stepanyan
0473c368e6
[es6][estree] Add support for sourceType: script|module modes.
...
+ Fix list of keywords and reserved words in ES6.
2015-03-18 13:42:49 +02:00
Ingvar Stepanyan
024a98431d
[estree] Add SuperExpression.
...
(we're almost there)
2015-03-17 23:01:42 +02:00