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

Autocomplete implementations of overriding methods #4

Open
keskiju opened this issue Dec 27, 2015 · 2 comments

Comments

Projects
None yet
1 participant
@keskiju
Copy link
Owner

commented Dec 27, 2015

e.g. super class has a method 'someMethod(String str)'. User writes 'som' while editing inherited class and autocomplete provides boilerplate implementation as a snippet. Snippet also includes the @override annotation.

Dictionary does not currently contain information about inheritance. Implement:

  • Add information about inheritance to dictionary: JavaClassReader.readClassesByName() and JavaClassLoader._addClass()
  • Snippets as suggestions: AtomAutocompleteProvider.getSuggestions()
@keskiju

This comment has been minimized.

Copy link
Owner Author

commented Dec 28, 2015

Additionally provide boilerplate implementation of constructor as a snippet: e.g. user writes 'MyCla..' in a class called 'MyClass' and autocomplete provides boilerplate implementation for constructor as a snippet. Constructor parameters are determined from superclass constructor and private fields of the class.

@keskiju

This comment has been minimized.

Copy link
Owner Author

commented Dec 28, 2015

#3 and #4 should return suggestions only if cursor position is in 'class SomeClass { ... }' scope.

@keskiju keskiju changed the title Autocomplete implementations of inherited methods Autocomplete implementations of overriding methods Jan 20, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.