|
@@ -1198,7 +1198,8 @@ $(a().b.c() + b);
|
|
let arrowNode = curNode;
|
|
let arrowNode = curNode;
|
|
|
|
|
|
let aryParent = arrowNode.parent;
|
|
let aryParent = arrowNode.parent;
|
|
- if (ArrayisArray(aryParent)) aryParent = aryParent.parent;
|
|
|
|
|
|
+ //如果是数组,则继续取上级节点
|
|
|
|
+ if (Array.isArray(aryParent)) aryParent = aryParent.parent;
|
|
|
|
|
|
if (aryParent?.type == AstNode.VariableDeclarator) {
|
|
if (aryParent?.type == AstNode.VariableDeclarator) {
|
|
//let xx = ()=>{...}
|
|
//let xx = ()=>{...}
|