Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@CyrusNajmabadi
Copy link
Member

These helpers predate patterns in the language. Now that we have that, we can simplify greatly.

@CyrusNajmabadi
Copy link
Member Author

@davidwengier ptal.

return receiverSymbol.IsKind(SymbolKind.Method) ||
receiverSymbol.IsIndexer() ||
receiverSymbol.IsKind(SymbolKind.Property);
return receiverSymbol is IMethodSymbol or IPropertySymbol;
Copy link
Member Author

Choose a reason for hiding this comment

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

IsIndexer is redundant. indexers are already properties.

@CyrusNajmabadi CyrusNajmabadi merged commit fa66577 into dotnet:main Nov 28, 2025
26 checks passed
@CyrusNajmabadi CyrusNajmabadi deleted the simplifyKind branch November 28, 2025 09:30
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Nov 28, 2025
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.

2 participants