This repository was archived by the owner on Oct 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
DiscussionPart_String_Documentation_Callout_Documentation
mattt edited this page Feb 7, 2020
·
2 revisions
Documentation for a Swift declaration.
public struct DocumentationThe summary.
var summary: String?The documented error throwing behavior.
var `throws`: String?The documented parameters.
var parameters: [(name: String, description: String)] = []The text segments and callouts that comprise the discussion, if any.
var discussionParts: [DiscussionPart] = []Whether the documentation has any content.
var isEmpty: BoolThe documented return value.
var returns: String?Create and return documentation from Swift Markup text.
public static func parse(_ text: String?) throws -> Documentation- Parameters
- text: The documentation text in Swift Markup (CommonMark) format.
-
CommonMark.Document.Errorif the provided text can't be parsed.
A structured representation of the documentation.
public static func ==(lhs: Documentation, rhs: Documentation) -> Boolpublic func hash(into hasher: inout Hasher)Generated at 2021-06-10T10:51:02+0000 using swift-doc 1.0.0-rc.1.