dotnet/roslyn
Vedi su GitHubRefactor `CheckFeatureAvailability` to not accept a `Location` parameter
Open
#68.935 aperta il 8 lug 2023
Area-CompilersArea-Performancehelp wanted
Metriche repository
- Star
- (20.414 star)
- Metriche merge PR
- (Merge medio 6g 17h) (256 PR mergiate in 30 g)
Descrizione
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.