Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[xtext-dev] Closure as Function Parameter: Missing in Xtend Doc?

Hi,

I couldn't find any example on the web or in the Xtend docs of how to
declare a closure as a function parameter.

Finally I found the rule in the Xtype.xtext grammar:

XFunctionTypeRef:
  ('(' paramTypes+=JvmTypeReference (',' paramTypes+=JvmTypeReference)* ')')? '=>' returnType=JvmTypeReference;

Is it missing in the docs or is I it just me not finding it?

Cheers,
Ramy



Back to the top