mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
ef546ba5f5
commit
425592399f
+1
-1
@@ -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,
|
||||
|
||||
+2
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user