Add descriptions to transformation/transformers/es3/member-expression-literals

This commit is contained in:
James Kyle 2015-07-11 12:06:12 -07:00
parent 894c3fe481
commit d67ba39d1c

View File

@ -5,13 +5,28 @@ export var metadata = {
};
/**
* [Please add a description.]
* Turn member expression reserved word properties into literals.
*
* @example
*
* **In**
*
* ```javascript
* foo.catch;
* ```
*
* **Out**
*
* ```javascript
* foo["catch"];
* ```
*/
export var visitor = {
/**
* [Please add a description.]
* Look for non-computed properties with names that are not valid identifiers.
* Turn them into computed properties with literal names.
*/
MemberExpression: {