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
Create Class could respect constructor args #10337
Comments
Removed this from the Later milestone. |
Added NotPlanned label. |
Removed Area-Editor, Oldschool-Milestone-Later labels. |
So the analyzer is in charge of code generation? cc @kevmoo. |
Analyzer is now "Analysis Server", which includes Quick Fixes/Assists and refactorings. |
OK, added a new label. Added Analysis-CodeGen label. |
It is possible to do all the code generated, but in two stages:
I don't feel like merging these two Quick Fixes. Attachments: Added NotPlanned label. |
Consider this code:
main() {
Person p = new Person('Bob', 'Smith');
}
Using "create class" quickfix creates this:
class Person {
}
I would have loved to see this:
class Person {
String arg1;
String arg2;
Person(String arg1, String arg2);
}
Or something like:
Person p = new Person();
p.firstName = 'Bob';
and then run Create Class, and get:
class Person {
String firstName;
}
The text was updated successfully, but these errors were encountered: