Comment
public final class Comment: TextNode
This represents the content of a comment, i.e., all the characters between the
starting <!-- and ending -->.
-
The
nodeTypeof aCommentis.comment.Declaration
Swift
public static let nodeType: NodeType = .comment -
The
nodeNameof aCommentis#comment.Declaration
Swift
public final let nodeName: String = "#comment" -
The
attributesdictionary of aCommentisnil.Declaration
Swift
public final let attributes: [String : String]? = nil
-
Creates a new
Commentnode.Declaration
Swift
public init(text: String)Parameters
textThe string contents of this comment.
-
A comment node calls
visit(self)on the visitor.Declaration
Swift
public func accept(_ visitor: Visitor)
View on GitHub
Install in Dash
Comment Class Reference