FastMod @(number) to @number to for efficiency in .m, .mm, .h files

Summary:
fastmod --extensions m,mm,h '@\((-)?([\d\.]+)\)([\s\)\],])' '@${1}${2}${3}' --dir fbobjc/*/
Regex updated to capture cases for @(number), and @(number)]

Reviewed By: adamjernst

Differential Revision: D27513888

fbshipit-source-id: aacfc12ad46fef90fe7a7cb46cc8c7a68b2b8c32
This commit is contained in:
Krzysztof Jordan 2021-04-13 02:10:59 -07:00 committed by Facebook GitHub Bot
parent 4d1c1b0b86
commit 6f7cee5345

View file

@ -348,7 +348,7 @@
((IGListTestAdapterDataSource *)self.dataSource).backgroundView = [UIView new];
[self.adapter reloadDataWithCompletion:nil];
XCTAssertFalse(self.collectionView.backgroundView.hidden);
IGListTestSection *sectionController = [self.adapter sectionControllerForObject:@(0)];
IGListTestSection *sectionController = [self.adapter sectionControllerForObject:@0];
sectionController.items = 1;
[self.adapter insertInSectionController:sectionController atIndexes:[NSIndexSet indexSetWithIndex:0]];
XCTAssertTrue(self.collectionView.backgroundView.hidden);
@ -360,7 +360,7 @@
[self.adapter reloadDataWithCompletion:nil];
UIView *backgroundView = self.adapter.collectionView.backgroundView;
XCTAssertTrue(!backgroundView || backgroundView.hidden);
IGListTestSection *sectionController = [self.adapter sectionControllerForObject:@(1)];
IGListTestSection *sectionController = [self.adapter sectionControllerForObject:@1];
sectionController.items = 0;
[self.adapter deleteInSectionController:sectionController atIndexes:[NSIndexSet indexSetWithIndex:0]];
XCTAssertFalse(self.collectionView.backgroundView.hidden);
@ -371,7 +371,7 @@
((IGListTestAdapterDataSource *)self.dataSource).backgroundView = [UIView new];
[self.adapter reloadDataWithCompletion:nil];
XCTAssertFalse(self.collectionView.backgroundView.hidden);
IGListTestSection *sectionController = [self.adapter sectionControllerForObject:@(0)];
IGListTestSection *sectionController = [self.adapter sectionControllerForObject:@0];
sectionController.items = 2;
[self.adapter reloadSectionController:sectionController];
XCTAssertTrue(self.collectionView.backgroundView.hidden);
@ -383,8 +383,8 @@
[self.adapter reloadDataWithCompletion:nil];
UIView *backgroundView = self.adapter.collectionView.backgroundView;
XCTAssertTrue(!backgroundView || backgroundView.hidden);
IGListTestSection *firstSectionController = [self.adapter sectionControllerForObject:@(1)];
IGListTestSection *secondSectionController = [self.adapter sectionControllerForObject:@(2)];
IGListTestSection *firstSectionController = [self.adapter sectionControllerForObject:@1];
IGListTestSection *secondSectionController = [self.adapter sectionControllerForObject:@2];
XCTestExpectation *expectation = [self expectationWithDescription:NSStringFromSelector(_cmd)];
[self.adapter performBatchAnimated:YES updates:^(id<IGListBatchContext> batchContext) {
firstSectionController.items = 0;