Skip to content

Conversation

@CyrusNajmabadi
Copy link
Member

No description provided.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner May 23, 2025 17:29
// ;
var isNullConditionalInvocationExpression = IsNullConditionalInvocationExpression(expressionNode);

return expressionNode.IsKind(SyntaxKind.InvocationExpression)
Copy link
Member Author

Choose a reason for hiding this comment

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

top check was redundant with check in the last clause.

if (syntaxFacts.IsNameOfAnyMemberAccessExpression(nodeInCurrent) ||
syntaxFacts.IsMemberInitializerNamedAssignmentIdentifier(nodeInCurrent))
{
// Original expression and current node being semantically equivalent isn't enough when the original expression
Copy link
Member Author

Choose a reason for hiding this comment

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

this comment was redundant. SemanticEquivalence.AreEquivalent already has the same comment within it.

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.

3 participants