Skip to content

Commit

Permalink
improve attribute comment
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossanlop committed Feb 7, 2025
1 parent 7f855a1 commit ab99ff7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ private Dictionary<string, MemberDeclarationSyntax> CollectChildrenNodes(SyntaxN
case ChangeType.Modified:
Debug.Assert(beforeNode != null && afterNode != null);
string? changed = GenerateChangedDiff(beforeNodeWithoutAttributes!, afterNodeWithoutAttributes!);
// The attributes might have changed, but they were handled before, separately.
// If the API itself also changed, then we can directly append the changed diff.
// At this stage, the attributes that decorated this API have already been handled and printed.
// If the API itself also changed, then we can directly append this API's diff under the attributes (if any).
// Otherwise, we still need to show the API as unmodified, but only if the attributes also changed.
if (changed != null)
{
Expand Down

0 comments on commit ab99ff7

Please sign in to comment.