113 Commits

Author SHA1 Message Date
Lucas Azzola
e53ce38c75 Implement nullish coalescing operator in parser (#761)
* Implement nullish coalescing operator in parser

* Add ?? to AST
2017-10-14 17:18:28 -04:00
Brandon Weaver
43afb984c4 fix readme (#749) [skip ci]
Amusingly the pipeline OP "breaks" the readme formatting because Markdown likes the `|` character a bit too much. Escaping the `|` fixes this and makes the readme display properly
2017-10-03 20:06:07 -04:00
Henry Zhu
d2e06a9496 Pipeline Operator proposal (#742) 2017-09-28 23:13:41 -04:00
Justin Ridgewell
8af007d560 Add throw expressions (#740) 2017-09-27 14:12:30 -04:00
Karl Cheng
65bea96544 Add support for class private methods (#703)
* Add support for class private methods

This commit adds parser support for the TC39 Stage 2 Private Methods
proposal.

This commit also changes "key" in ClassPrivateProperty from an
Identifier to a PrivateName, as well as disallowing #constructor as a
valid private field name.

* Add tests for string literal get/set/async

These should be treated as regular methods and not special get/set/async
behaviour.

* Add tests for class private methods

This also removes a test from the Test262 whitelist that failed before
the changes for private methods support and now passes.

* Modify class private prop tests for PrivateName

* Add class private prop tests for #constructor

* Fix existing ASI test case failure
2017-09-06 18:09:12 -04:00
MarckK
c88af90c0a Add optionality to catch bindings (#634)
* Add optionality to catch bindings (plus tests)

* Update ast/spec, README, set param to null if no param with plugin optionalCatchBinding

* Fix: wrap param = null in else case

* Fix tests for optional catch binding; add tests which include finally clause
2017-07-21 10:18:57 -04:00
Nicolò Ribaudo
5e1e94917c Add link to decorators proposal (#606) [skip ci] 2017-07-01 06:21:52 -04:00
Henry Zhu
a95f55c468 add ts to readme [skip ci] 2017-06-28 10:59:02 -04:00
Sebastian McKenzie
759266a2e8 Remove future plans from README (#597) [skip ci] 2017-06-28 08:44:47 -04:00
Henry Zhu
7795615dac fix example [skip ci] 2017-06-28 06:49:55 -04:00
Henry Zhu
107aea75f1 add a code example [skip ci] (#594) 2017-06-27 23:53:23 -04:00
William Horton
baa5f4dca7 Stage 2: BigInt (#588)
* Stage 2: BigInt

* Change plugin name to bigInt (camelcase).

* Update based on PR review, add test cases.

* Use hex for charCodes.
2017-06-27 23:35:57 -04:00
Daniel Tschinder
fecdb6feeb Make tokens optional (#563)
Adding tokens to the ast is significant slower and most tools
don't ever use them anyway
2017-06-27 23:26:24 -04:00
Henry Zhu
3d03414c05 update readme with decorators2 [skip ci] 2017-06-27 16:06:33 -04:00
Henry Zhu
37793d5be7 add links [skip ci] 2017-06-06 11:28:08 -04:00
Sven SAULEAU
e064bb9135 Merge pull request #545 from xtuc/feat-optional-chaining
Optional Chaining: Stage 1 plugin
2017-06-05 23:13:16 +02:00
Boopathi Rajaa
edf34dc780 [skip ci] Add classPrivateProperties to README & fix classProperties proposal link (#554) 2017-06-01 21:31:25 -04:00
Henry Zhu
2dd624b44e Merge branch 'master' into feat-optional-chaining 2017-05-31 14:33:47 -04:00
Jan Olaf Krems
d4e842d4eb Add plugin for import.meta proposal (#544)
* Add plugin for import.meta proposal

Fixes https://github.com/babel/babylon/issues/539

* Tests for assignment/mutation of import.meta

* Use correct identifier in failure message

* Simpler & more consistent script errors for import.meta
2017-05-30 19:28:51 -04:00
Sven SAULEAU
51bd87baa8
feat: use syntax plugin 2017-05-30 18:35:29 +02:00
Henry Zhu
81ce415359 add proposal links [skip ci] 2017-05-26 16:44:25 -04:00
Rick Waldron
b344f62056 NumberLiteralSeparator: Stage 1 feature plugin. Closes gh-538 (#541)
* NumberLiteralSeparator: Stage 1 feature plugin

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>

* fix-up per review

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>

* nit: forbiddenNumericLiteralSeparatorSibling -> forbiddenNumericLiteralSeparatorSiblings

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>

* fix-up to change includes -> indexOf

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-26 16:37:05 -04:00
Henry Zhu
ed1809c2d1 link to contributing [skip ci] 2017-05-26 16:25:45 -04:00
Sven SAULEAU
0e12f565da Document babylon plugin system (#507) [skip ci]
* docs: document babylon plugin system

* [skip ci]

* [skip ci]

* [skip ci] it's -> its

* [skip ci]
2017-05-03 10:56:22 -04:00
Henry Zhu
9f7d9080cf remove babylon plugin for template revision since it's stage-4 (#426) 2017-03-22 14:05:56 -04:00
Kevin Gibbons
2e467ef3bc Add support for invalid escapes in tagged templates (#274)
Per the stage-3 TC39 proposal:
https://github.com/tc39/proposal-template-literal-revision
2017-03-21 16:55:54 -04:00
Henry Zhu
5e0dc7a689 add version badge [skip ci] 2017-03-08 08:43:49 -05:00
Henry Zhu
fdb0b50c86 add ranges [skip ci] 2017-03-01 11:00:36 -05:00
Henry Zhu
1e747835db add estree to docs [skip ci] (#372) 2017-02-23 18:12:30 -05:00
Raphael Mu
f25a2fbc78 add startLine option (#346) 2017-02-10 15:06:28 +01:00
Timothy Gu
88d38a1abb Update API documentation (#330) 2017-02-10 14:59:35 +01:00
Andrew Levine
cec8bc0354 Add some test coverage for decorators stage-0 plugin (#250) 2017-01-05 22:07:40 +01:00
Andrew Levine
30545e883f Freeze current plugins list for "*" option, and remove from README.md (#245) 2016-12-06 14:09:36 -05:00
Henry Zhu
89a606ce11 document * [skip ci] 2016-11-17 19:06:16 -05:00
Ryan Clark
b4c56ce9f9 Fix typo (#226) [skip ci] 2016-11-14 20:37:32 -05:00
Jordan Gensler
c63c1bc728 [dynamic-import] Implementing import() syntax (#163) 2016-10-14 14:54:21 -04:00
Henry Zhu
2697bfd820 clarify proposals [skip ci] 2016-10-06 19:38:43 -04:00
Daniel Tschinder
680f35f606 Update links to estree 2016-10-04 18:02:56 +02:00
Henry Zhu
b1584cac6a link to example pr [skip ci] 2016-09-22 14:05:20 -04:00
Steve Mao
c04a8594ae fix typo: interspatial (#129) 2016-09-16 10:28:11 +02:00
Henry Zhu
8fc6c28900 add note about spec-compliancy and semver (#128)
* add note about spec-compliancy and semver

* review [skip ci]
2016-09-15 19:24:19 -04:00
Daniel Tschinder
e0b2c86950 Remove deprecated plugin from README.md (#101)
As we probably remove it anyway in the next major we can already at least not expose it in the readme.
2016-08-29 11:06:23 -04:00
Henry Zhu
c8b32485a0 Update readme - es2017 [skip ci] 2016-08-23 17:47:20 -04:00
Daniel Tschinder
4506822180 Remove exponentiationOperator, asyncFunctions, trailingFunctionCommas (#98)
* This removes the exponentiationOperator as it is now in es2016

* Remove from tests

* Remove asyncFunctions and restructure test dirs

* Remove trailingFunctionCommas
2016-08-23 17:11:01 -04:00
Daniel Tschinder
964bd4d609 Add coverage badge 2016-07-13 00:43:26 +02:00
Henry Zhu
3f266691a8 fix ast links again [skip ci] 2016-06-22 09:54:05 -04:00
Jesse McCarthy
6dac2afd43 Fix link to AST spec
[ci skip]
2016-06-22 09:46:26 -04:00
Henry Zhu
dcc3b981f9 rm extraneous text [skip ci] 2016-06-22 08:55:41 -04:00
Henry Zhu
2d4c117485 Update Output, change links [skip ci] 2016-06-22 08:50:48 -04:00
Rene Saarsoo
d7dc857bbf Document AST deviations from ESTree spec
Refs #40
2016-06-18 11:05:48 +03:00