1 /* 2 * Copyright (c) Meta Platforms, Inc. and affiliates. 3 * 4 * This source code is licensed under the MIT license found in the 5 * LICENSE file in the root directory of this source tree. 6 */ 7 8 #import <Foundation/Foundation.h> 9 10 @interface ABI47_0_0RCTJSStackFrame : NSObject 11 12 @property (nonatomic, copy, readonly) NSString *methodName; 13 @property (nonatomic, copy, readonly) NSString *file; 14 @property (nonatomic, readonly) NSInteger lineNumber; 15 @property (nonatomic, readonly) NSInteger column; 16 @property (nonatomic, readonly) BOOL collapse; 17 18 - (instancetype)initWithMethodName:(NSString *)methodName 19 file:(NSString *)file 20 lineNumber:(NSInteger)lineNumber 21 column:(NSInteger)column 22 collapse:(BOOL)collapse; 23 - (NSDictionary *)toDictionary; 24 25 + (instancetype)stackFrameWithLine:(NSString *)line; 26 + (instancetype)stackFrameWithDictionary:(NSDictionary *)dict; 27 + (NSArray<ABI47_0_0RCTJSStackFrame *> *)stackFramesWithLines:(NSString *)lines; 28 + (NSArray<ABI47_0_0RCTJSStackFrame *> *)stackFramesWithDictionaries:(NSArray<NSDictionary *> *)dicts; 29 30 @end 31