esrap 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esrap",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Parse in reverse",
5
5
  "repository": {
6
6
  "type": "git",
@@ -501,6 +501,12 @@ export default (options = {}) => {
501
501
  * @param {Context} context
502
502
  */
503
503
  'ClassDeclaration|ClassExpression': (node, context) => {
504
+ if (node.decorators) {
505
+ for (const decorator of node.decorators) {
506
+ context.visit(decorator);
507
+ }
508
+ }
509
+
504
510
  if (node.declare) {
505
511
  context.write('declare ');
506
512
  }