Implemented lazy parsing of method signatures to improve TTI

This commit is contained in:
Nick Lockwood committed 2015-08-11 08:49:13 -08:00
1 parent 57a6a02dff
commit a5e9f83a0a
5 files changed
+240 -213

No files matched your search

@@ -63,9 +63,11 @@ static BOOL RCTLogsError(void (^block)(void))
// Specifying an NSNumber param without nonnull isn't allowed
XCTAssertTrue(RCTLogsError(^{
NSString *methodName = @"doFooWithNumber:(NSNumber *)n";
(void)[[RCTModuleMethod alloc] initWithObjCMethodName:methodName
JSMethodName:nil
moduleClass:[self class]];
RCTModuleMethod *method = [[RCTModuleMethod alloc] initWithObjCMethodName:methodName
JSMethodName:nil
moduleClass:[self class]];
// Invoke method to trigger parsing
[method invokeWithBridge:nil module:self arguments:@[@1]];
}));
}