Account for different parentPaths
hzoo opened this issue · comments
Henry commented
It's hardcoded for 2 cases
['a','a']
- ExpressionStatement
, ArrayExpression
in the body
var a = ['a','a']
- VariableDeclaration
, VariableDeclarator
, ArrayExpression
.
Needs to traverse parents to some level where a VariableDeclaration
is possible - basically the closest parent function scope?