|
|
|
|
|
|
|
|
Re: Setting GeneratorConfig JavaSourceVersion [message #1766628 is a reply to message #1766623] |
Fri, 23 June 2017 15:33 |
|
here is a potential workaround
import "http://www.eclipse.org/xtext/xbase/Xbase" as xbase
import "http://www.eclipse.org/xtext/common/JavaVMTypes" as types
@Override
XConstructorCall returns xbase::XExpression:
{xbase::XConstructorCall}
'new' constructor=[types::JvmConstructor|QualifiedName]
(=>'<>'| =>'<' (typeArguments+=JvmArgumentTypeReference (',' typeArguments+=JvmArgumentTypeReference)*)? '>')?
(=>explicitConstructorCall?='('
(
arguments+=XShortClosure
| arguments+=XExpression (',' arguments+=XExpression)*
)?
')')?
arguments+=XClosure?;
but it may break existing code that makes use of the "operator diamond" operator like this one:
class Dully {
def xxx() {
val xxxx = new Dully<>
1
}
def operator_diamond(Dully a, int b) {
return a
}
}
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
Powered by
FUDForum. Page generated in 0.05096 seconds