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

postfix completions outside methods (Java) #249

Open
ryantheleach opened this issue Oct 15, 2024 · 0 comments
Open

postfix completions outside methods (Java) #249

ryantheleach opened this issue Oct 15, 2024 · 0 comments

Comments

@ryantheleach
Copy link

I can't currently work out how to create a postfix expression that is valid outside of methods in java.

It appears the only valid postfix's are expression based.

I was hoping to be able to do

myMethodName.meth and complete a template looking roughly like this:

.meth : public static main method
	ANY  →  $access:enum("public", "private", "protected")$ $static$ $returnType#1:fixedTypeName():void$ $expr$($END$)

It would be especially useful when creating new methods that have known annotations that could be added, and have restrictions on accessibility, like in cases of annotated Controller methods in various web frameworks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant