esrap 2.0.0 → 2.0.1

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.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Parse in reverse",
5
5
  "repository": {
6
6
  "type": "git",
@@ -516,9 +516,9 @@ export default (options = {}) => {
516
516
  context.write(' ');
517
517
  }
518
518
 
519
- if (node.implements) {
520
- context.write('implements ');
521
- sequence(context, node.implements, node.body.loc?.start ?? null, false);
519
+ if (node.implements && node.implements.length > 0) {
520
+ context.write('implements');
521
+ sequence(context, node.implements, node.body.loc?.start ?? null, true);
522
522
  }
523
523
 
524
524
  context.visit(node.body);