XTend code generation and comments [message #1750734] |
Tue, 27 December 2016 16:29 |
|
I noticed that the XTend infrastructure does not copy all comments over to the generated java file. Comments of the form "/*...*/" are copied but not comments of the form "//...".
Can I turn it on?
Is it implemented at all?
|
|
|
|
Re: XTend code generation and comments [message #1750736 is a reply to message #1750735] |
Tue, 27 December 2016 16:41 |
|
Actually comments are not always copied.
For example the xtend code below:
package flax.sandbox
/* comment 1 */
class Test {
/* comment 2 */
def void doSomething(String /* comment3 */ myParameter) {
/* comment 4*/
}
}
is transformed into:
package flax.sandbox;
/**
* comment 1
*/
@SuppressWarnings("all")
public class Test {
/**
* comment 2
*/
public void doSomething(final String myParameter) {
}
}
This would be handy for IDE that parses stuff from comments (i.e IntelliJ IDEA todo feature).
Is that worth a feature request?
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04561 seconds