Refactor: Rename getMethodInvocation() -> createMethodInvocation() (#37159)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/37159

Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D44850617

fbshipit-source-id: 9f10c7e2d72546647a2dccda1d4bc484f9f95ec0
This commit is contained in:
Ramanpreet Nara
2023-04-30 03:28:33 -07:00
committed by Facebook GitHub Bot
parent ef546ba5f5
commit 425592399f
2 changed files with 3 additions and 3 deletions
@@ -82,7 +82,7 @@ class JSI_EXPORT ObjCTurboModule : public TurboModule {
BOOL hasMethodArgConversionSelector(NSString *methodName, int argIndex);
SEL getMethodArgConversionSelector(NSString *methodName, int argIndex);
NSString *getArgumentTypeName(NSString *methodName, int argIndex);
NSInvocation *getMethodInvocation(
NSInvocation *createMethodInvocation(
jsi::Runtime &runtime,
bool isSync,
const char *methodName,
@@ -541,7 +541,7 @@ NSString *ObjCTurboModule::getArgumentTypeName(NSString *methodName, int argInde
return nil;
}
NSInvocation *ObjCTurboModule::getMethodInvocation(
NSInvocation *ObjCTurboModule::createMethodInvocation(
jsi::Runtime &runtime,
bool isSync,
const char *methodName,
@@ -700,7 +700,7 @@ jsi::Value ObjCTurboModule::invokeObjCMethod(
}
NSMutableArray *retainedObjectsForInvocation = [NSMutableArray arrayWithCapacity:count + 2];
NSInvocation *inv = getMethodInvocation(
NSInvocation *inv = createMethodInvocation(
runtime, isMethodSync(returnType), methodName, selector, args, count, retainedObjectsForInvocation);
jsi::Value returnValue = jsi::Value::undefined();