-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Support ExcludeFromCodeCoverageAttribute in local functions #41129
Support ExcludeFromCodeCoverageAttribute in local functions #41129
Conversation
src/Compilers/CSharp/Portable/Lowering/SyntheticBoundNodeFactory.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Portable/Lowering/Instrumentation/DynamicAnalysisInjector.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Portable/Lowering/Instrumentation/DynamicAnalysisInjector.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Portable/Lowering/SyntheticBoundNodeFactory.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Portable/Lowering/SyntheticBoundNodeFactory.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Portable/Lowering/Instrumentation/DynamicAnalysisInjector.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Portable/Lowering/LocalRewriter/LocalRewriter.cs
Outdated
Show resolved
Hide resolved
Done with review pass (iteration 2) #Resolved |
src/Compilers/CSharp/Portable/Lowering/LocalRewriter/LocalRewriter.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Portable/Lowering/LocalRewriter/LocalRewriter.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Portable/Lowering/LocalRewriter/LocalRewriter.cs
Outdated
Show resolved
Hide resolved
Done with review pass (iteration 3) |
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(iteration 4)
return RemoveDynamicAnalysisInjectors(previous); | ||
case DebugInfoInjector { Previous: var previous } injector: | ||
var newPrevious = RemoveDynamicAnalysisInjectors(previous); | ||
return (object)newPrevious != previous ? new DebugInfoInjector(newPrevious) : injector; |
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.
We missed that the DebugInfoInjector
singleton could be used in the case where newPrevious
is the NoOp instrumenter. Will correct in a future PR.
Related to #38801