Area restrita - Questionario
This commit is contained in:
+8
-6
@@ -72,10 +72,12 @@ var _default = callProvider => {
|
||||
objectIsGlobalIdentifier = false;
|
||||
}
|
||||
}
|
||||
const source = (0, _utils.resolveSource)(object);
|
||||
let skipObject = property(source.id, key, source.placement, path);
|
||||
skipObject || (skipObject = !objectIsGlobalIdentifier || path.shouldSkip || object.shouldSkip || isRemoved(object));
|
||||
if (!skipObject) handleReferencedIdentifier(object);
|
||||
const source = (0, _utils.resolveSource)(object, new Set());
|
||||
const skipObject = property(source.id, key, source.placement, path);
|
||||
const canHandleObject = objectIsGlobalIdentifier && !path.shouldSkip && !object.shouldSkip && !isRemoved(object);
|
||||
if (canHandleObject && (!skipObject || _utils.PossibleGlobalObjects.has(source.id))) {
|
||||
handleReferencedIdentifier(object);
|
||||
}
|
||||
},
|
||||
ObjectPattern(path) {
|
||||
const {
|
||||
@@ -105,7 +107,7 @@ var _default = callProvider => {
|
||||
if (obj) ({
|
||||
id,
|
||||
placement
|
||||
} = (0, _utils.resolveSource)(obj));
|
||||
} = (0, _utils.resolveSource)(obj, new Set()));
|
||||
for (const prop of path.get("properties")) {
|
||||
if (prop.isObjectProperty()) {
|
||||
const key = (0, _utils.resolveKey)(prop.get("key"));
|
||||
@@ -115,7 +117,7 @@ var _default = callProvider => {
|
||||
},
|
||||
BinaryExpression(path) {
|
||||
if (path.node.operator !== "in") return;
|
||||
const source = (0, _utils.resolveSource)(path.get("right"));
|
||||
const source = (0, _utils.resolveSource)(path.get("right"), new Set());
|
||||
const key = (0, _utils.resolveKey)(path.get("left"), true);
|
||||
if (!key) return;
|
||||
callProvider({
|
||||
|
||||
Reference in New Issue
Block a user