Community
Participate
Working Groups
N20060407-0010 It would be nice to highlight occurrences of 'this' as well.
Please provide more info, e.g. in the following code snippet: ... this.foo(); foo(); th<caret>is.bar(); ... what would you highlight and what would be the benefit?
Just highlight all identifiers of 'this' (ThisExpression). For qualified this expressions, highlight the 'this' expressions where the qualifier matches: this.foo(); Outer.this.bar(); OuterOuter.<hilite>th<caret>is</hilite>.bar1(); OuterOuter.<hilite>this</hilite>.bar2(); this.foo1(OuterOuter.<hilite>this</hilite>) Conceptionally, this is an expression like eg. field accesses and highlighting occurrences would bring the same benefit as for field accesses, such as quick usage overview as method arguments or qualifiers
OK, so you wouldn't want/need to also highlight the second foo() from comment 1 somehow?
No, just occurrences of the 'this' keyword, resolving to the same binding