Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: GWT JSNI code Comment position #1269

Open
marciodel opened this issue Apr 21, 2017 · 1 comment
Open

Feature: GWT JSNI code Comment position #1269

marciodel opened this issue Apr 21, 2017 · 1 comment

Comments

@marciodel
Copy link

marciodel commented Apr 21, 2017

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

@surli surli added the feature label Apr 24, 2017
@monperrus
Copy link
Collaborator

Is there a way to change the position?

No

But it would be an interesting feature to add, for instance by adding a value to the enumeration CommentOffset. Pull request welcome!

@monperrus monperrus changed the title GWT JSNI code Comment position Feature: GWT JSNI code Comment position Apr 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants