mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Rename function for clarity
Cleanup now that we use this for two things
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user