From ad902e3138ff67a76e7c3d8d6bf7d7d4f76fc479 Mon Sep 17 00:00:00 2001 From: iska Date: Sun, 11 Oct 2015 23:40:03 +0200 Subject: [PATCH] Add nullability specifiers to attribute selector --- HTMLKit/CSSAttributeSelector.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/HTMLKit/CSSAttributeSelector.h b/HTMLKit/CSSAttributeSelector.h index b7e6a99..f78d389 100644 --- a/HTMLKit/CSSAttributeSelector.h +++ b/HTMLKit/CSSAttributeSelector.h @@ -18,20 +18,21 @@ typedef NS_ENUM(NSUInteger, CSSAttributeSelectorType) CSSAttributeSelectorBegins, CSSAttributeSelectorEnds, CSSAttributeSelectorContains, - CSSAttributeSelectorHyphen + CSSAttributeSelectorHyphen, + CSSAttributeSelectorNot }; @interface CSSAttributeSelector : CSSSelector @property (nonatomic, assign) CSSAttributeSelectorType type; -@property (nonatomic, copy) NSString *name; -@property (nonatomic, copy) NSString *value; +@property (nonatomic, copy) NSString * _Nonnull name; +@property (nonatomic, copy) NSString * _Nonnull value; -+ (instancetype)selectorForClass:(NSString *)className; -+ (instancetype)selectorForId:(NSString *)elementId; ++ (nullable instancetype)selectorForClass:(nonnull NSString *)className; ++ (nullable instancetype)selectorForId:(nonnull NSString *)elementId; -- (instancetype)initWithType:(CSSAttributeSelectorType)type - attributeName:(NSString *)name - attrbiuteValue:(NSString *)value; +- (nullable instancetype)initWithType:(CSSAttributeSelectorType)type + attributeName:(nonnull NSString *)name + attrbiuteValue:(nullable NSString *)value; @end