Initializer
init(from:source:for:problems:)
Creates a semantic object from the parsed block directive markup and performs semantic analysis to verify that the semantic object is valid.
init?(from directive: BlockDirective, source: URL?, for bundle: DocumentationBundle, problems: inout [Problem])
Parameters
directiveThe parsed block directive to create a semantic object from.
sourceThe location of the source file that contains the markup for the parsed block directive.
bundleThe documentation bundle that the source file belongs to.
problemsAn inout array of Problem to be collected for later diagnostic reporting.