Skip to content

Commit

Permalink
fix: ignore call expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenrui committed Feb 19, 2024
1 parent 52905a5 commit dd97c1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/lexer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ function getMemberIdentifier(node) {
'.' +
getMemberIdentifier(node.property)
)
if (node.type === 'CallExpression') return getMemberIdentifier(node.callee)
if (node.type === 'ArrayExpression') return '[]'
if (node.type === 'ThisExpression') return 'this'
if (node.type === 'Literal') return node.raw
if (node.type === 'CallExpression') return null
if (node.type === 'NewExpression') return null
return node.name
}
Expand Down

0 comments on commit dd97c1d

Please sign in to comment.