jacktasia / dumb-jump

an Emacs "jump to definition" package for 50+ languages
GNU General Public License v3.0
1.57k stars 150 forks source link

Iterator of a foreach loop in C# is not found as a definition #437

Open Zambito1 opened 1 year ago

Zambito1 commented 1 year ago

Thank you for this great package :)

I think I noticed a fairly simple bug: the iterator of a C# foreach loop is not returned as a definition. Consider the following block:

foreach (int x in int[0])
{
    Console.WriteLine(x);
}

When using dumb-jump on x here, the int x is not returned as a location to jump to. I think it should be.