microsoft/RoslynClrHeapAllocationAnalyzer

Closure capture of "this" points to the method node, instead pick class decl node

开放

#12 创建于 2015年5月3日

 (0 条评论) (0 个反应) (0 位负责人)C# (63 个派生)github user discovery
enhancementhelp wanted

仓库指标

星标
 (654 个星标)
PR 合并指标
 (30 天内没有已合并 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.

贡献者指南