We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Documentation for a Swift declaration.
public struct Documentation: Hashable, Codable
Codable, Hashable
Codable
Hashable
summary
The summary.
public var summary: Paragraph?
discussionParts
The text segments and callouts that comprise the discussion, if any.
public var discussionParts: [DiscussionPart] = []
parameters
The documented parameters.
public var parameters: [Parameter] = []
returns
The documented return value.
public var returns: Document?
`throws`
The documented error throwing behavior.
public var `throws`: Document?
isEmpty
Whether the documentation has any content.
public var isEmpty: Bool
Documentation is considered empty if all of the following criteria are met:
Its summary property is nil
nil
Its returns property is nil
Its throws property is nil
throws
Its discussionParts property is empty
Its parameters property is empty
parse(_:)
Create and return documentation from Swift Markup text.
public static func parse(_ text: String?) throws -> Documentation
CommonMark.Document.Error if the provided text can't be parsed.
CommonMark.Document.Error
A structured representation of the documentation.