Add current location property to Input Stream reader
Can be used for better parse errors reporting
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
@interface HTMLInputStreamReader : NSObject
|
||||
|
||||
@property (nonatomic, readonly) NSString *string;
|
||||
@property (nonatomic, readonly) NSUInteger currentLocation;
|
||||
@property (nonatomic, copy) HTMLStreamReaderErrorCallback errorCallback;
|
||||
|
||||
- (id)initWithString:(NSString *)string;
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
|
||||
@implementation HTMLInputStreamReader
|
||||
@synthesize string = _string;
|
||||
@synthesize currentLocation = _location;
|
||||
@synthesize errorCallback = _errorCallback;
|
||||
|
||||
#pragma mark - Lifecycle
|
||||
|
||||
Reference in New Issue
Block a user