@0no-co/graphqlsp 1.14.0 → 1.15.0
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.
|
@@ -3256,6 +3256,32 @@ var crawlScope = (e, t, i, r, a, n) => {
|
|
|
3256
3256
|
if (i.find((e => e.startsWith(t + ".")))) {
|
|
3257
3257
|
l.push(o.text);
|
|
3258
3258
|
}
|
|
3259
|
+
if (b.isCallExpression(o.parent)) {
|
|
3260
|
+
return {
|
|
3261
|
+
v: o.parent.arguments.flatMap((e => {
|
|
3262
|
+
var t = [ ...l ];
|
|
3263
|
+
var r = e;
|
|
3264
|
+
var _loop3 = function() {
|
|
3265
|
+
var e = [ ...t, r.name.text ].join(".");
|
|
3266
|
+
if (i.find((t => t.startsWith(e + ".")))) {
|
|
3267
|
+
t.push(r.name.text);
|
|
3268
|
+
}
|
|
3269
|
+
r = r.expression;
|
|
3270
|
+
};
|
|
3271
|
+
while (b.isPropertyAccessExpression(r)) {
|
|
3272
|
+
_loop3();
|
|
3273
|
+
}
|
|
3274
|
+
if (b.isIdentifier(r)) {
|
|
3275
|
+
var a = [ ...t, r.getText() ].join(".");
|
|
3276
|
+
if (i.find((e => e.startsWith(a + ".")))) {
|
|
3277
|
+
t.push(r.getText());
|
|
3278
|
+
}
|
|
3279
|
+
}
|
|
3280
|
+
var n = t.join(".");
|
|
3281
|
+
return i.filter((e => e.startsWith(n + ".")));
|
|
3282
|
+
}))
|
|
3283
|
+
};
|
|
3284
|
+
}
|
|
3259
3285
|
} else if (b.isPropertyAccessExpression(o) && "at" === o.name.text && b.isCallExpression(o.parent)) {
|
|
3260
3286
|
o = o.parent;
|
|
3261
3287
|
} else if (b.isPropertyAccessExpression(o) && se.has(o.name.text) && b.isCallExpression(o.parent)) {
|