This repository has been archived by the owner on Oct 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Documentation
mattt edited this page May 27, 2020
·
12 revisions
Documentation for a Swift declaration.
public struct Documentation: Hashable, Codable
Codable
, Hashable
The summary.
var summary: String?
The text segments and callouts that comprise the discussion, if any.
var discussionParts: [DiscussionPart]
The documented parameters.
var parameters: [Parameter]
The documented return value.
var returns: String?
The documented error throwing behavior.
var `throws`: String?
Whether the documentation has any content.
var isEmpty: Bool
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.
A structured representation of the documentation.
Generated at 2021-06-10T10:51:02+0000 using swift-doc 1.0.0-rc.1.