Skip to content

Commit

Permalink
Add missing attributes/assertions to VISITOR_KEYS (#15666)
Browse files Browse the repository at this point in the history
* Add missing `attributes`/`assertions` to `VISITOR_KEYS`

* Don't change the builders API
  • Loading branch information
nicolo-ribaudo committed May 29, 2023
1 parent 4018739 commit 579cba0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/babel-types/src/definitions/core.ts
Expand Up @@ -1485,7 +1485,8 @@ defineType("ClassDeclaration", {
});

defineType("ExportAllDeclaration", {
visitor: ["source"],
builder: ["source"],
visitor: ["source", "attributes", "assertions"],
aliases: [
"Statement",
"Declaration",
Expand Down Expand Up @@ -1537,7 +1538,8 @@ defineType("ExportDefaultDeclaration", {
});

defineType("ExportNamedDeclaration", {
visitor: ["declaration", "specifiers", "source"],
builder: ["declaration", "specifiers", "source"],
visitor: ["declaration", "specifiers", "source", "attributes", "assertions"],
aliases: [
"Statement",
"Declaration",
Expand Down Expand Up @@ -1692,7 +1694,8 @@ defineType("ForOfStatement", {
});

defineType("ImportDeclaration", {
visitor: ["specifiers", "source"],
builder: ["specifiers", "source"],
visitor: ["specifiers", "source", "attributes", "assertions"],
aliases: ["Statement", "Declaration", "ImportOrExportDeclaration"],
fields: {
attributes: {
Expand Down

0 comments on commit 579cba0

Please sign in to comment.