Skip to content

Conversation

@d-ronnqvist
Copy link
Contributor

Bug/issue #, if applicable: rdar://163326857

Summary

This is another slice of #1366

It adds a helper function to the DocCHTML/MarkdownRenderer to render a "returns" section as HTML.

Dependencies

None.

Testing

Nothing in particular for this PR. It only adds an internal helper function. See #1366 for how it eventually does get used.

Checklist

Make sure you check off the following items. If they cannot be completed, provide a reason.

  • Added tests
  • Ran the ./bin/test script and it succeeded
  • Updated documentation if necessary

@d-ronnqvist
Copy link
Contributor Author

@swift-ci please test

@d-ronnqvist
Copy link
Contributor Author

@swift-ci please test

@d-ronnqvist
Copy link
Contributor Author

@swift-ci please test

/// Creates a "parameters" section that describes all the parameters for a symbol.
///
/// If each language representation of the API has their own language-specific parameters, pass each language representation's parameter information.
/// If each language representation of the symbol have their own language-specific parameters, pass the parameter information for all language representations.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// If each language representation of the symbol have their own language-specific parameters, pass the parameter information for all language representations.
/// If each language representation of the symbol has its own language-specific parameters, pass the parameter information for all language representations.

package extension MarkdownRenderer {
/// Creates a "returns" section that describes all return values of a symbol.
///
/// If each language representation of the symbol have their own language-specific return values, pass the return value content for all language representations.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// If each language representation of the symbol have their own language-specific return values, pass the return value content for all language representations.
/// If each language representation of the symbol has its own language-specific return values, pass the return value content for all language representations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants