INRIA/spoon

Feature: GWT JSNI code Comment position

Open

#1,269 opened on Apr 21, 2017

 (1 comment) (0 reactions) (0 assignees)Java (383 forks)github user discovery
featuregood first issuehelp wanted

Repository metrics

Stars
 (1,933 stars)
PR merge metrics
 (Avg merge 19d 11h) (49 merged PRs in 30d)

Description

To create a native Javascript method in GWT a comment must be used:

void native alert(String msg)/*-{
   // Javascript code here
  $wnd.alert(msg);
}-*/ ;

Spoon generates the resulting code like this

/* -{
   // Javascript code here
  $wnd.alert(msg);
}- */ 
void native alert(String msg);

Is there a way to change the position?

Thanks

Contributor guide