Add missing lightweight generics in Parser, Element & Node classes

To play nicely with Swift 3
This commit is contained in:
iska
2016-09-20 19:28:08 +02:00
parent 7d1b94219d
commit 7e42fd1e08
3 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -86,7 +86,7 @@ typedef NS_ENUM(unsigned short, HTMLDocumentPosition)
/**
A read-only ordered set of child nodes.
*/
@property (nonatomic, strong, readonly) NSOrderedSet *childNodes;
@property (nonatomic, strong, readonly) NSOrderedSet<HTMLNode *> *childNodes;
/**
The first child node, if any.
@@ -220,7 +220,7 @@ typedef NS_ENUM(unsigned short, HTMLDocumentPosition)
@param node The nodes to prepend.
*/
- (void)prependNodes:(NSArray *)nodes;
- (void)prependNodes:(NSArray<HTMLNode *> *)nodes;
/**
Appends the given node to the set of child nodes.
@@ -235,7 +235,7 @@ typedef NS_ENUM(unsigned short, HTMLDocumentPosition)
@param nodes The nodes to append.
*/
- (void)appendNodes:(NSArray *)nodes;
- (void)appendNodes:(NSArray<HTMLNode *> *)nodes;
/**
Inserts a given node before a child node.