js-code-detector 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -570,12 +570,12 @@ var _AstUtil = class {
|
|
|
570
570
|
if (id.type === "ObjectPattern") {
|
|
571
571
|
const properties = id.properties;
|
|
572
572
|
for (const property of properties) {
|
|
573
|
-
if (property.type === "
|
|
574
|
-
const value = property.value;
|
|
575
|
-
this._deepFindIdentifier(value, callback);
|
|
576
|
-
} else if (property.type === "RestElement") {
|
|
573
|
+
if (property.type === "RestElement") {
|
|
577
574
|
const argument = property.argument;
|
|
578
575
|
this._deepFindIdentifier(argument, callback);
|
|
576
|
+
} else {
|
|
577
|
+
const value = property.value;
|
|
578
|
+
this._deepFindIdentifier(value, callback);
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
}
|