Skip to content

Show <value> documentation in Metadata as Source and Object Browser#36491

Merged
sharwell merged 3 commits intodotnet:masterfrom
sharwell:show-value-doc
Feb 6, 2020
Merged

Show <value> documentation in Metadata as Source and Object Browser#36491
sharwell merged 3 commits intodotnet:masterfrom
sharwell:show-value-doc

Conversation

@sharwell
Copy link
Copy Markdown
Contributor

  • Show <value> documentation in Metadata as Source
  • Show <value> documentation in Object Browser

This establishes the initial data flow and first features as a prerequisite for #31618 and #8627.

@sharwell sharwell requested a review from a team as a code owner June 15, 2019 13:29
Copy link
Copy Markdown
Member

@JoeRobich JoeRobich left a comment

Choose a reason for hiding this comment

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

Looks good to me.


list.VerifyImmediateMemberDescriptions(
"public int M { get; }" & vbCrLf &
$" {String.Format(ServicesVSResources.Member_of_0, "C")}" & vbCrLf &
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we have a test helper for building the description string so that the formatting logic is in a single place instead of in each test? something like

string BuildDescription(string declaration, string containingMemberName = null, string summaryText = null, string returnText = null, string valueText = null)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We could, but it seems out of scope for this pull request

emittedDocs = true;
}

if (ShowValueDocumentation(symbol) && documentationComment.ValueText != null)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is it possible to include both a returns and value in the doc comments?

Copy link
Copy Markdown
Contributor Author

@sharwell sharwell Feb 3, 2020

Choose a reason for hiding this comment

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

Yes, it's possible, though it typically does not make sense to do so (not recommended to use both).

Copy link
Copy Markdown
Member

@JoeRobich JoeRobich left a comment

Choose a reason for hiding this comment

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

LGTM

@sharwell sharwell merged commit 50500db into dotnet:master Feb 6, 2020
@sharwell sharwell deleted the show-value-doc branch February 6, 2020 18:33
@sharwell sharwell added this to the 16.6.P1 milestone Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants