dotnet/roslyn
Refactor `CheckFeatureAvailability` to not accept a `Location` parameter
Aberta
#68.935 aberto em 8 de jul. de 2023
Area-CompilersArea-Performancehelp wanted
Métricas do repositório
- Stars
- (20.414 estrelas)
- Métricas de merge de PR
- (Métricas PR pendentes)
Description
Currently, CheckFeatureAvailability overloads take a Location parameter. Causing caller to call syntaxNode.Location which allocates a SourceLocation. At the end, if the feature is available, the allocation is thrown away.
Example:
Not sure how much this pattern is hit, but it's good to optimize this anyway.