Add nullability specifiers to attribute selector

This commit is contained in:
iska
2015-10-11 23:40:03 +02:00
parent 6cfe3b6f83
commit ad902e3138
+9 -8
View File
@@ -18,20 +18,21 @@ typedef NS_ENUM(NSUInteger, CSSAttributeSelectorType)
CSSAttributeSelectorBegins,
CSSAttributeSelectorEnds,
CSSAttributeSelectorContains,
CSSAttributeSelectorHyphen
CSSAttributeSelectorHyphen,
CSSAttributeSelectorNot
};
@interface CSSAttributeSelector : CSSSelector <CSSSimpleSelector>
@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