Kill DeclarationType.ModuleOption #2861
Labels
difficulty-01-duckling
Issue where no particularly involved knowledge of the internal API is needed.
enhancement
Feature requests, or enhancements to existing features. Ideas. Anything within the project's scope.
technical-debt
This makes development harder or is leftover from a PullRequest. Needs to be adressed at some point.
up-for-grabs
Use this label in conjunction with a difficulty level label, e.g. difficulty-02-ducky
Projects
That one predates version 1.0 I think. Module options aren't declarations, and
DeclarationType.ModuleOption
is used in 12 places in the solution:API.Declaration
- it should die here tooSymbols.Declaration
- it's part of the declaration types we exclude as "never array" (duh!)Symbols.DeclarationFinder
- where it's special-cased so as to return the parent module when it's selected.Symbols.DeclarationSymbolsListener
- which creates the module option "declarations".FindSymbolViewModel
- where it's also explicitly excluded from navigatable declarations.OptionBaseInspection
- IMO the inspection itself should be removed.OptionExplicitInspection
- we should be inspecting the parse tree instead.RenameModel.AcquireTarget
- where it's also being excluded; you can't rename that declaration.UseMeaningfulNameInspection
- where it's also being excluded, for the same reason as above.So basically all usages beyond creating the declarations are for special-casing the declaration type.
Burn.
The text was updated successfully, but these errors were encountered: