From 69deaa828c747b399ab79a7a71c38b14a8e52685 Mon Sep 17 00:00:00 2001 From: Timofey Kachalov Date: Mon, 25 Oct 2021 15:13:52 +0300 Subject: [PATCH] Add support for ES2022 class fields and private methods. (#118) --- estraverse.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/estraverse.js b/estraverse.js index 93225bb..f0d9af9 100644 --- a/estraverse.js +++ b/estraverse.js @@ -124,8 +124,10 @@ NewExpression: 'NewExpression', ObjectExpression: 'ObjectExpression', ObjectPattern: 'ObjectPattern', + PrivateIdentifier: 'PrivateIdentifier', Program: 'Program', Property: 'Property', + PropertyDefinition: 'PropertyDefinition', RestElement: 'RestElement', ReturnStatement: 'ReturnStatement', SequenceExpression: 'SequenceExpression', @@ -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'],