INRIA/spoon

Feature: GWT JSNI code Comment position

Aperta

#1269 aperta il 21 apr 2017

 (1 commento) (0 reazioni) (0 assegnatari)Java (383 fork)github user discovery
featuregood first issuehelp wanted

Metriche repository

Star
 (1933 stelle)
Metriche merge PR
 (Merge medio 19g 11h) (49 PR mergiate in 30 g)

Descrizione

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

Guida contributor