microsoft/RoslynClrHeapAllocationAnalyzer
View on GitHubClosure capture of "this" points to the method node, instead pick class decl node
Open
#12 opened on May 3, 2015
enhancementhelp wanted
Repository metrics
- Stars
- (654 stars)
- PR merge metrics
- (PR metrics pending)
Description
When a closure captures the this parameter, we lazily just point to the method declaration syntax node, but we really should point to the class/struct declaration node.
If the class is a partial class, then we should point to the class declaration node in the current file.