Skip to content

Commit bf9df99

Browse files
committed
Add comments
1 parent a7d4102 commit bf9df99

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

StyleCop.Analyzers/StyleCop.Analyzers/Helpers/XmlCommentHelper.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ internal static string GetText(XmlTextSyntax textElement, bool normalizeWhitespa
301301
{
302302
StringBuilderPool.Free(stringBuilder);
303303

304+
// No change is needed, return original string.
304305
return single;
305306
}
306307
}
@@ -313,6 +314,10 @@ internal static string GetText(XmlTextSyntax textElement, bool normalizeWhitespa
313314
return StringBuilderPool.ReturnAndFree(stringBuilder);
314315
}
315316

317+
/// <summary>
318+
/// Append to StringBuilder and perform white space normalization.
319+
/// </summary>
320+
/// <returns>True if output is different.</returns>
316321
internal static bool AppendNormalize(this StringBuilder builder, string text, bool normalizeWhitespace, ref bool lastWhitespace)
317322
{
318323
bool diff = false;

0 commit comments

Comments
 (0)