microsoft/RoslynClrHeapAllocationAnalyzer
在 GitHub 查看Closure capture of "this" points to the method node, instead pick class decl node
Open
#12 创建于 2015年5月3日
enhancementhelp wanted
仓库指标
- Star
- (654 star)
- PR 合并指标
- (PR 指标待抓取)
描述
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.