@effect/language-service 0.55.0 → 0.55.1
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.
- package/cli.js +5 -6
- package/cli.js.map +1 -1
- package/effect-lsp-patch-utils.js +5 -6
- package/effect-lsp-patch-utils.js.map +1 -1
- package/index.js +5 -6
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/transform.js +5 -6
- package/transform.js.map +1 -1
package/package.json
CHANGED
package/transform.js
CHANGED
|
@@ -4413,13 +4413,12 @@ var missedPipeableOpportunity = createDiagnostic({
|
|
|
4413
4413
|
const callChainNodes = /* @__PURE__ */ new WeakMap();
|
|
4414
4414
|
while (nodeToVisit.length > 0) {
|
|
4415
4415
|
const node = nodeToVisit.shift();
|
|
4416
|
-
if (ts.isCallExpression(node) && node.arguments.length === 1
|
|
4417
|
-
const parentChain = callChainNodes.get(node
|
|
4418
|
-
callChainNodes.set(node, parentChain.concat(node));
|
|
4419
|
-
} else if (
|
|
4420
|
-
const parentChain = callChainNodes.get(node
|
|
4416
|
+
if (ts.isCallExpression(node) && node.arguments.length === 1) {
|
|
4417
|
+
const parentChain = callChainNodes.get(node) || [];
|
|
4418
|
+
callChainNodes.set(node.arguments[0], parentChain.concat(node));
|
|
4419
|
+
} else if (callChainNodes.has(node) && ts.isExpression(node)) {
|
|
4420
|
+
const parentChain = (callChainNodes.get(node) || []).slice();
|
|
4421
4421
|
const originalParentChain = parentChain.slice();
|
|
4422
|
-
parentChain.push(node);
|
|
4423
4422
|
while (parentChain.length > options.pipeableMinArgCount) {
|
|
4424
4423
|
const subject = parentChain.pop();
|
|
4425
4424
|
const resultType = typeChecker.getTypeAtLocation(subject);
|