Community
Participate
Working Groups
Created attachment 276833 [details] See image See image attached. With 2 equivalent selection before pressing Control+1, I get different results.
Created attachment 276834 [details] attached project You can use this project.( open class VarLambda)
Selecting with space returns the LambdaExpression node whereas selecting without the space return the SingleVariableDeclaration node. You can see this in the AST View. Moving to JDT Core.
(In reply to Noopur Gupta from comment #2) > Selecting with space returns the LambdaExpression node whereas selecting > without the space return the SingleVariableDeclaration node. You can see > this in the AST View. Moving to JDT Core. This sounds reasonable to me. We always report the smallest *enclosing* node, right? The space is outside the SingleVariableDeclaration, so the SingleVariableDeclaration is no longer enclosing the selection. Any reasons why / how we should change this?
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.