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

New refactors for getter #60181

Open
FMorschel opened this issue Feb 20, 2025 · 0 comments
Open

New refactors for getter #60181

FMorschel opened this issue Feb 20, 2025 · 0 comments
Labels
area-devexp Developer Experience related issues (DevTools, IDEs, Analysis Server, completions, refactoring, etc)

Comments

@FMorschel
Copy link
Contributor

Today we have the Extract Method refactor and a Convert Getter to Method rewrite. This request is actually a two part one:

  • If the extracted content has no need for local variables, suggest a new Extract Getter
  • If a method has no parameters and returns something other than void suggest a new Convert Method to Getter

We could also think about a similar requests for setters if the return type is void and it takes one parameter only, but that may be something that happens less frequently.

Any suggestions for this are appreciated.

@FMorschel FMorschel added the area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. label Feb 20, 2025
@johnniwinther johnniwinther added area-devexp Developer Experience related issues (DevTools, IDEs, Analysis Server, completions, refactoring, etc) and removed area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. labels Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-devexp Developer Experience related issues (DevTools, IDEs, Analysis Server, completions, refactoring, etc)
Projects
None yet
Development

No branches or pull requests

2 participants