fdorg/flashdevelop — pull request #148 by JoeRobich (2014-03-20 13:55:23+00:00)
Title: Add nested function parameters when parsing local vars

ParseLocalVars was already bringing variables defined in nested functions into the autocomplete. However, It was not bringing nested function parameters. In the case below you would see `heightOfFormItemHeader` in the autocomplete but not `height`.

```actionscript
private function getFormItemResizeFunction(item:FormItem):Function
{
return function (height:Number):void {
const heightOfFormItemHeader:int = 40;
item.height = height + heightOfFormItemHeader;
};
}
```

The change below names anonymous functions which is required for them to be added to the model.Members list. These functions are removed before returning the Members list.

I changed the foreach to a for loop so that I could manipulate the Members list from within the loop instead of having to cache function members and loop through them afterwards.

Autocomplete still has the problem of showing variables and parameters from nested functions whose scope you may not currently be within. However, that was already the case for variables from nested functions.