microsoft/RoslynClrHeapAllocationAnalyzer

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

Aberta

#12 aberto em 3 de mai. de 2015

 (0 comentário) (0 reação) (0 responsável)C# (63 forks)github user discovery
enhancementhelp wanted

Métricas do repositório

Stars
 (654 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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.

Guia do colaborador