Skip to content

Refactor getPsiTargets method #2354

Open
@EgorkaKulikov

Description

@EgorkaKulikov

Description

Current signature of the method is the following:

private fun getPsiTargets(e: AnActionEvent): Triple<Set<PsiClass>, Set<MemberInfo>, Boolean>?

Currently some absolutely unclear lines like this are used:

return Triple(setOf(srcClass), if (focusedMethod != null) setOf(focusedMethod) else emptySet(), true)

We should introduce some data class instead of Triple with meaningful field names, especially for the boolean flag.

Metadata

Metadata

Assignees

Labels

comp-uiImprovements of plugin UI appearence and functionalityctg-refactoringIssue related to refactoring process

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions