-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retrieve file path from pragma checksum #7912
Conversation
87ceae1
to
d1000e1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I left some comments
analyzers/src/SonarAnalyzer.Common/Helpers/SyntaxNodeExtensions.cs
Outdated
Show resolved
Hide resolved
analyzers/tests/SonarAnalyzer.UnitTest/Extensions/SyntaxNodeExtensionsTest.cs
Show resolved
Hide resolved
d1000e1
to
bfb478f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Kudos, SonarCloud Quality Gate passed! |
Kudos, SonarCloud Quality Gate passed! |
@@ -38,7 +38,7 @@ public static bool IsGenerated(this SyntaxTree tree, GeneratedCodeRecognizer gen | |||
return false; | |||
} | |||
var cache = GeneratedCodeCache.GetOrCreateValue(compilation); | |||
// Hotpath: Don't use cache.GetOrAdd that takes a factory method. It allocates a delegate which causes GC preasure. | |||
// Hot path: Don't use cache.GetOrAdd that takes a factory method. It allocates a delegate which causes GC preasure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was supposed to be pressure
, instead of preasure
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've noticed that typo a bit later and fixed it in: https://github.com/SonarSource/sonar-dotnet/pull/7916/files
Part of #7894