Skip to content

Commit

Permalink
update acorn-walk
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea authored and marijnh committed Apr 24, 2021
1 parent f87e592 commit a097b7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions acorn-walk/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ base.ImportDeclaration = (node, st, c) => {
base.ImportExpression = (node, st, c) => {
c(node.source, st, "Expression")
}
base.ImportSpecifier = base.ImportDefaultSpecifier = base.ImportNamespaceSpecifier = base.Identifier = base.Literal = ignore
base.ImportSpecifier = base.ImportDefaultSpecifier = base.ImportNamespaceSpecifier = base.Identifier = base.PrivateIdentifier = base.Literal = ignore

base.TaggedTemplateExpression = (node, st, c) => {
c(node.tag, st, "Expression")
Expand All @@ -381,7 +381,7 @@ base.ClassBody = (node, st, c) => {
for (let elt of node.body)
c(elt, st)
}
base.MethodDefinition = base.Property = (node, st, c) => {
base.MethodDefinition = base.PropertyDefinition = base.Property = (node, st, c) => {
if (node.computed) c(node.key, st, "Expression")
c(node.value, st, "Expression")
if (node.value) c(node.value, st, "Expression")
}

0 comments on commit a097b7d

Please sign in to comment.