If the variable declaration is outside the for statement, the Declaration property is null.
|
var variables = fss.Declaration.Variables; |
Sample code to reproduce the issue:
int index = 0;
for (index = 0; index < 10; index++)
{
Console.WriteLine(index);
}