microsoft/RoslynClrHeapAllocationAnalyzer

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

Open

#12 ouverte le 3 mai 2015

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)C# (63 forks)github user discovery
enhancementhelp wanted

Métriques du dépôt

Stars
 (654 stars)
Métriques de merge PR
 (Métriques PR en attente)

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.

Guide contributeur