microsoft/RoslynClrHeapAllocationAnalyzer

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

Open

#12 aperta il 3 mag 2015

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)C# (63 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (654 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor