Skip to content

Commit

Permalink
Add support for ES2022 class fields and private methods. (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanex3339 authored Oct 25, 2021
1 parent d16797b commit 69deaa8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions estraverse.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,10 @@
NewExpression: 'NewExpression',
ObjectExpression: 'ObjectExpression',
ObjectPattern: 'ObjectPattern',
PrivateIdentifier: 'PrivateIdentifier',
Program: 'Program',
Property: 'Property',
PropertyDefinition: 'PropertyDefinition',
RestElement: 'RestElement',
ReturnStatement: 'ReturnStatement',
SequenceExpression: 'SequenceExpression',
Expand Down Expand Up @@ -200,8 +202,10 @@
NewExpression: ['callee', 'arguments'],
ObjectExpression: ['properties'],
ObjectPattern: ['properties'],
PrivateIdentifier: [],
Program: ['body'],
Property: ['key', 'value'],
PropertyDefinition: ['key', 'value'],
RestElement: [ 'argument' ],
ReturnStatement: ['argument'],
SequenceExpression: ['expressions'],
Expand Down

0 comments on commit 69deaa8

Please sign in to comment.