microsoft/RoslynClrHeapAllocationAnalyzer

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

Offen

#12 geöffnet am 03.05.2015

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C# (63 Forks)github user discovery
enhancementhelp wanted

Repository-Metriken

Stars
 (654 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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.

Contributor Guide