29 Commits

Author SHA1 Message Date
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
Justin Ridgewell
9c9f9e2adb Add static private class field support 2017-07-02 01:44:12 -04:00
Daniel Tschinder
69cba43f82 Fix parsing of private fields (#566)
The computed key is not part of the spec.
key for ClassProperties is an Expression
Do not parse computed and literal keys for PrivateClassProperties
2017-06-06 11:42:07 -04:00
Sven SAULEAU
b0386005c8
docs: NewExpression spec 2017-05-30 20:14:19 +02:00
Sven SAULEAU
9bcd85acf3
feat: CallExpression support 2017-05-30 20:12:43 +02:00
Sven SAULEAU
03d89b6307
docs: fix typo in spec [skip ci] 2017-05-29 18:46:52 +02:00
Sven SAULEAU
d3bc8fcbdf
Merge branch 'master' into feat-optional-chaining 2017-05-29 18:43:40 +02:00
Diego Ferreiro Val
01da62283c Modify grammar to support Private Fields proposal: (#260)
* Modify grammar to support Private Fields proposal:
- Adding optional plugin `classPrivateProperties`
- Adding PrivateName type identifier
- Adding ClassPrivateProperty to ClassBody
- Allow PrivateName in MemberExpression
- Allow PrivateName as a reference
- Adding tests

* Remove unnecesary liberal parameter

* Guarding for plugin dependecy for future versioning

* update spec.md [skip ci]

* move comment [skip ci]

* remove unused param [skip ci]

* Refactor PrivateName to contain Identifier in name property
2017-05-22 11:33:48 -04:00
James Browning
23ff45fcfa Spec fix as BindExpression only have a single object/callee not an Array (#436) [skip ci]
* Fixed spec.md to reflect that BindExpressions only have a single node not an array for their properties

* Added semicolons to BindExpression props
2017-05-17 10:25:10 -04:00
Andy
1f113fd650 Fix FunctionDeclaration spec: Id may be null (#503)
* Fix FunctionDeclaration spec: Id may be null

* Use OptFunctionDeclaration and OptFunctionExpression
2017-05-10 21:29:05 +02:00
Sven SAULEAU
b2fdd944fe
feat: add tests 2017-04-17 13:33:00 +02:00
Sven SAULEAU
0927e24ac6
Merge remote-tracking branch 'kristofdegrave/nullPropagation' into feat-optional-chaining 2017-04-17 13:21:35 +02: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
James Browning
5f048b4f5d [7.0] Moved value field in spec from ObjectMember to ObjectProperty as ObjectMethod's don't have it (#415) [skip ci] 2017-03-21 16:44:54 -04:00
Andy
873bf284ba Fix spec for ClassMethod: It doesn't have a function, it *is* a function. (#406) [skip ci] 2017-03-13 20:52:12 -04:00
James Browning
a5386433e1 Changed Non-existent RestPattern to RestElement which is what is actually parsed (#409) [skip ci] 2017-03-13 17:27:16 -04:00
Daniel Tschinder
12abc20575 Merge branch 'master' into 7.0 2017-03-04 21:00:42 +01:00
Alex Kuzmenko
962ce16e84 Add DoExpression to spec (#364) 2017-03-03 21:38:04 +01:00
Henry Zhu
5e0cce4974 Merge branch 'master' into 7.0 2017-02-28 14:37:13 -05:00
Alex Kuzmenko
d9e9466350 Update spec.md [skip ci] (#367) 2017-02-28 12:45:25 -05:00
Henry Zhu
8d90dc0d10 [7.0] Change RestProperty/SpreadProperty to RestElement/SpreadElement (#384)
* [7.0] Change RestProperty/SpreadProperty to RestElement/SpreadElement

* Fix rest element in array pattern at invalid location
2017-02-28 12:31:58 -05:00
Kristof Degrave
1eaf01661b babel/babylon#328 babel/babylon#205 ?. as nullPropagation. For now it only works for member access. (.? or ?.[) If the object is undefined this will return undefined. If the object on which you want to access the property is defined, the value of the propery will be given back. 2017-02-11 21:20:15 +01:00
Kristof Degrave
b902fe6c7b ?. && ?[ as member access with nullPropagation. If the object is undefined this will return undefined. If the object on which you want to access the property is defined, the value of the propery will be given back. 2017-02-11 16:44:28 +01:00
Brandon Dail
56928dca66 [7.0] Remove ForAwaitStatement, add await flag to ForOfStatement (#349)
* Remove ForAwaitStatement, add await flag to ForOfStatement

* Set await flag for all ForOfStatements
2017-02-09 17:37:03 -05:00
Mathias Bynens
f2df08e253 AST spec: fix casing of RegExpLiteral (#318) [skip ci] 2017-01-20 11:05:21 -05:00
Henry Zhu
d1b0886d46 add ForAwaitStatement (async generator already added) [skip ci] (#196) 2016-10-25 16:25:25 +02:00
Jordan Gensler
c63c1bc728 [dynamic-import] Implementing import() syntax (#163) 2016-10-14 14:54:21 -04:00
Moti Zilberman
4e1fbd48d5 Add support for computed class property names (#120) (#121) 2016-09-21 21:24:59 -04:00
Henry Zhu
be7d968903 Move ast spec from babel/babel [skip ci] 2016-06-22 08:39:29 -04:00