Skip to content

Conversation

GrabYourPitchforks
Copy link
Member

Summary

Add missing System.Text docs for Rune and SpanLineEnumerator. The text for MoveNext was copied largely from Span<T>+Enumerator.MoveNext.

Contributes to dotnet/runtime#58665.

@GrabYourPitchforks GrabYourPitchforks requested a review from a team as a code owner September 8, 2021 18:58
@GrabYourPitchforks GrabYourPitchforks changed the title Textdocs Add some missing System.Text docs Sep 8, 2021
@opbld31
Copy link

opbld31 commented Sep 8, 2021

Docs Build status updates of commit 56e250e:

✅ Validation status: passed

File Status Preview URL Details
xml/System.Text/Rune.xml ✅Succeeded View
xml/System.Text/SpanLineEnumerator.xml ✅Succeeded View

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

Copy link
Contributor

@carlossanlop carlossanlop left a comment

Choose a reason for hiding this comment

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

LGTM. Pending getting answers about the removed lines.

<Parameter Name="obj" Type="System.Object" Index="0" FrameworkAlternate="net-5.0;net-6.0" />
</Parameters>
<Docs>
<param name="other">The object to compare with the current instance.</param>
Copy link
Contributor

Choose a reason for hiding this comment

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

Weird. There's no <Parameter Name="other" ... />. Usually it would mean that the parameter got renamed between previews.

@gewarren I guess it's fine to remove it? The CI did not complain.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, fine to remove it.

<Docs>
<summary>Gets the line at the current position of the enumerator.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we're supposed to remove <remarks> items, even if they are left undocumented. The default string is To be added..

Although, I did not see any CI failures. @gewarren should these two remark lines be brought back or can they stay removed?

Copy link
Contributor

Choose a reason for hiding this comment

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

It will get re-added on the next CI job, so it's probably best not to delete it.

<Parameter Name="obj" Type="System.Object" Index="0" FrameworkAlternate="net-5.0;net-6.0" />
</Parameters>
<Docs>
<param name="other">The object to compare with the current instance.</param>
Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, fine to remove it.

<Docs>
<summary>Gets the line at the current position of the enumerator.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
Copy link
Contributor

Choose a reason for hiding this comment

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

It will get re-added on the next CI job, so it's probably best not to delete it.

<summary>Advances the enumerator to the next line of the span.</summary>
<returns>
<see langword="true" /> if the enumerator successfully advanced to the next line; <see langword="false" /> if the enumerator has advanced past the end of the span.</returns>
<remarks>To be added.</remarks>
Copy link
Contributor

Choose a reason for hiding this comment

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

I would undelete this one too.

@GrabYourPitchforks
Copy link
Member Author

For the <remarks> section, what do I do if I have no remarks to submit? Just leave it blank, a la <remarks></remarks>?

The API is unremarkable. :)

@gewarren
Copy link
Contributor

gewarren commented Sep 8, 2021

For the <remarks> section, what do I do if I have no remarks to submit? Just leave it blank, a la <remarks></remarks>?

The API is unremarkable. :)

Just leave it as "To be added.". That is well-known text. Even if you never intend to add any :)

@GrabYourPitchforks
Copy link
Member Author

Thanks @carlossanlop for re-adding them!

@opbld30
Copy link

opbld30 commented Sep 8, 2021

Docs Build status updates of commit 42e9b91:

✅ Validation status: passed

File Status Preview URL Details
xml/System.Text/Rune.xml ✅Succeeded View
xml/System.Text/SpanLineEnumerator.xml ✅Succeeded View

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

@carlossanlop carlossanlop merged commit 6e3f549 into dotnet:net6-rc1 Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants