Skip to content

Conversation

@pmosk
Copy link
Member

@pmosk pmosk commented Mar 29, 2025

No description provided.

@pmosk pmosk requested a review from andreise March 29, 2025 19:40
=>
methodSymbol.IsGenericMethod is false &&
methodSymbol.Parameters.Length is 0 &&
string.Equals(methodSymbol.Name, "GetEnumerator");
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
string.Equals(methodSymbol.Name, "GetEnumerator");
string.Equals(methodSymbol.Name, "GetEnumerator", StringComparison.InvariantCulture);

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

methodSymbol.IsGenericMethod is false &&
methodSymbol.Parameters.Length is 0 &&
methodSymbol.ReturnType.InnerIsType(SystemNamespace, "Boolean") &&
string.Equals(methodSymbol.Name, "MoveNext");
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
string.Equals(methodSymbol.Name, "MoveNext");
string.Equals(methodSymbol.Name, "MoveNext", StringComparison.InvariantCulture);

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed


static bool IsJsonPropertyNameAttribute(AttributeData attributeData)
=>
InnerIsType(attributeData.AttributeClass, "System.Text.Json.Serialization", "JsonPropertyNameAttribute") is true;
Copy link
Member

Choose a reason for hiding this comment

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

Is there is true for the sake of clarity here?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't remember why I used this construction here. Maybe there was a different logic. But now it is not necessary

@andreise andreise merged commit 50385e6 into main Apr 1, 2025
2 checks passed
@andreise andreise deleted the feature/create-first-version branch April 1, 2025 20:43
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