@@ -72,6 +72,20 @@ NS_ASSUME_NONNULL_BEGIN
7272 */
7373- (nullable ASCellNode *)nodeForItemAtIndexPath : (NSIndexPath *)indexPath AS_WARN_UNUSED_RESULT;
7474
75+ /* *
76+ * Similar to -indexPathForCell:.
77+ *
78+ * @param cellNode a cellNode in the collection view
79+ *
80+ * @return The index path for this cell node.
81+ *
82+ * @discussion This index path returned by this method is in the _view's_ index space
83+ * and should only be used with @c ASCollectionView directly. To get an index path suitable
84+ * for use with your data source and @c ASCollectionNode, call @c indexPathForNode: on the
85+ * collection node instead.
86+ */
87+ - (nullable NSIndexPath *)indexPathForNode : (ASCellNode *)cellNode AS_WARN_UNUSED_RESULT;
88+
7589/* *
7690 * Similar to -supplementaryViewForElementKind:atIndexPath:
7791 *
@@ -391,20 +405,6 @@ NS_ASSUME_NONNULL_BEGIN
391405 */
392406- (NSArray <__kindof ASCellNode *> *)visibleNodes AS_WARN_UNUSED_RESULT ASDISPLAYNODE_DEPRECATED_MSG(" Use ASCollectionNode method instead." );
393407
394- /* *
395- * Similar to -indexPathForCell:.
396- *
397- * @param cellNode a cellNode in the collection view
398- *
399- * @return The index path for this cell node.
400- *
401- * @discussion This index path returned by this method is in the _view's_ index space
402- * and should only be used with @c ASCollectionView directly. To get an index path suitable
403- * for use with your data source and @c ASCollectionNode, call @c indexPathForNode: on the
404- * collection node instead.
405- */
406- - (nullable NSIndexPath *)indexPathForNode : (ASCellNode *)cellNode AS_WARN_UNUSED_RESULT ASDISPLAYNODE_DEPRECATED_MSG(" Use ASCollectionNode method instead." );
407-
408408@end
409409
410410ASDISPLAYNODE_DEPRECATED_MSG (" Renamed to ASCollectionDataSource." )
0 commit comments