Early-bound named parameters not resolved? #3937
Labels
bug
Identifies work items for known bugs
difficulty-02-ducky
Resolving these involves the internal API, but with relatively easy problems to solve.
help wanted
resolver
Issue is easier to resolve with knowledge of the internal resolver API and the Antlr4 parse trees.
up-for-grabs
Use this label in conjunction with a difficulty level label, e.g. difficulty-02-ducky
user-interface
This issue explicitly relates to the visible interface of Rubberduck.
Projects
We correctly resolve
Excel.Range.Cells
calls, for example:However given named parameters:
Selecting the
ColumnIndex
identifier doesn't update the status bar with the expectedColumnIndex (parameter: Long)
, which makes me wonder if we resolve named parameters.We are resolving user code's named parameters (although it doesn't seem to work for recursive calls).
This isn't a high-priority bug at all, since it doesn't affect inspections or refactorings (perhaps it's exactly why we didn't bother with resolving those), however it does affect the context-sensitive reference count in the status bar, making it feel as though something isn't working as it should.
I haven't looked at the source, but it seems to me this could be a fairly easy thing to fix - likely the resolver is simply deliberately working off user declarations when resolving named parameters; if that's the case then the fix is just a matter of making it include the referenced declarations too.
The text was updated successfully, but these errors were encountered: