Rename function for clarity

Cleanup now that we use this for two things
This commit is contained in:
Joe Savona
2023-05-18 15:52:51 -07:00
parent 0322e4dbd4
commit 5008448d74
@@ -724,9 +724,7 @@ function inferBlock(
);
const effects =
signature !== null
? getMethodCallEffects(instrValue, signature)
: null;
signature !== null ? getFunctionEffects(instrValue, signature) : null;
for (let i = 0; i < instrValue.args.length; i++) {
const arg = instrValue.args[i];
const place = arg.kind === "Identifier" ? arg : arg.place;
@@ -765,9 +763,7 @@ function inferBlock(
);
const effects =
signature !== null
? getMethodCallEffects(instrValue, signature)
: null;
signature !== null ? getFunctionEffects(instrValue, signature) : null;
for (let i = 0; i < instrValue.args.length; i++) {
const arg = instrValue.args[i];
const place = arg.kind === "Identifier" ? arg : arg.place;
@@ -1035,7 +1031,7 @@ function getFunctionCallSignature(
* @param sig
* @returns Inferred effects of function arguments, or null if inference fails.
*/
function getMethodCallEffects(
function getFunctionEffects(
fn: MethodCall | CallExpression,
sig: FunctionSignature
): Array<Effect> | null {