Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 362328

Summary: [xtend][contentassist] Missing proposals in closure body
Product: [Tools] Xtend Reporter: Sebastian Zarnekow <sebastian.zarnekow>
Component: CoreAssignee: Project Inbox <xtend-inbox>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: sven.efftinge
Version: 2.2.0Flags: sven.efftinge: juno+
Target Milestone: RC3   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Sebastian Zarnekow CLA 2011-10-28 11:41:00 EDT
def doStuff(List<String> it) {
  map[<cursor>]
}

Only class names are proposed at the cursor position. I'd expect toUpperCase and the like.

def doStuff(List<String> it) {
  sortBy [length].map[ it.<cursor> ]
}

Only members of Object are proposed here.

Works fine for

def doStuff(List<String> it) {
  sortBy [length].map[ it.tUC<cursor> ]
}
Comment 1 Sebastian Zarnekow CLA 2012-05-29 13:05:22 EDT
Pushed to master.
Comment 2 Eclipse Webmaster CLA 2017-10-31 11:26:31 EDT
Requested via bug 522520.

-M.