History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-54223
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Eugene Pasynkov
Reporter: Serge Baltic
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

For an anonymous method, highlight closure when caret is inside method

Created: 10 Dec 07 06:03   Updated: 15 Jan 08 17:36
Component/s: Code View
Fix Version/s: Future Versions
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
When authoring a delegate, I'd like to know whether it'll cause a class to be created to support a closure. Sometimes it's possible to use fields instead of locals (if they're assigned from locals), which will save us a class, but I can easily miss an accidental use of a local.

This feature will work after Daemon has finished on current file.



 All   Comments   Work Log   Change History      Sort Order:
Ilya Ryzhenkov - 10 Dec 07 12:03
There should be some better way of visualizing closures, like highlight all variables which come to closure.

Ilya Ryzhenkov - 14 Jan 08 16:34
Probably, when inside anonymous method, highlight closure using outline markup?

Serge Baltic - 15 Jan 08 17:36
What do you mean by "closure"?

The outline markup will not work, because it's a little to abusive and is just ignored in most cases.

What is really interesting are the outer local variables that come into the closure.