Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366792 - [Xtend] highlighting of extension methods
Summary: [Xtend] highlighting of extension methods
Status: CLOSED INVALID
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.2.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: M5   Edit
Assignee: Holger Schill CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-15 04:47 EST by Sven Efftinge CLA
Modified: 2017-09-19 17:34 EDT (History)
2 users (show)

See Also:
sven.efftinge: juno+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Efftinge CLA 2011-12-15 04:47:09 EST
Simple feature calls are sometimes not get highlighted as extension method.

@Inject extension MyExtension // defines doStuff(String x)
def foo(String it) {
  doStuff //not colored as extension method
}
Comment 1 Holger Schill CLA 2011-12-16 06:51:57 EST
Unfortunately I am not able to reproduce this. With this example the invocation of doStuff is highlighted. 


Xtend-class

package foo

import com.google.inject.Inject

class Foo {
@Inject extension Bar
	def foo(String it){
		doStuff  <--- is highlighted as extension
	}	
}

Java-class

package foo;

public class Bar {
	public String doStuff(String a){
		return a;
	}
}


Sven, could you please attach your example?
Comment 2 Sven Efftinge CLA 2012-01-04 08:30:48 EST
This was due to an unintuitive linking resolution. Bug #367058 should help with this.
Comment 3 Karsten Thoms CLA 2017-09-19 17:22:42 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 17:34:07 EDT
Closing all bugs that were set to RESOLVED before Neon.0