Skip to content

Show parameter name in methods for simple typesΒ #184

@tgodzik

Description

@tgodzik

Is your feature request related to a problem? Please describe.
With code like:

def easyMethod(boolParam: Boolean) = ???
easyMethod(true)

it would be good to show name of the parameter so that we see:
easyMethod(boolParam = true)

The same should probably apply to Int, Double, Float.

Describe the solution you'd like
We should be able to achieve it via decorations, similar to how we do it in case of type decorations. The main difficulty here is making sure the we don't search for the name each time a request is made, since there might a larger number of methods and we load decorations for the entire file at the same time.

Describe alternatives you've considered
Writing it manually always.

Additional context
This is a follow up from #21

Search terms:
named parameters decorations inferred information

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions