john-tvh / VBE_Extras

VBE Extras ... extending the VBA editor
https://www.thevbahelp.com/vbe-extras
1 stars 0 forks source link

Does not find references to Functions or Property Gets when used directly as the value of a named argument #7

Closed john-tvh closed 1 year ago

john-tvh commented 1 year ago

Describe the bug Does not find references to Functions or Property Gets when used directly as the value of a named argument. Does find other references and also finds references to variables, statics and other types when used as the value of a named argument.

To Reproduce Sample code:

Sub Foo()
    Bar lVal:=GetNum
    Bar GetNum
End Sub

Sub Bar(lVal As Long)
    Debug.Print Now, lVal
End Sub

Function GetNum() As Long
    GetNum = 42
End Function

... get references for GetNum ... will find only 3 with the reference in line Bar lVal:=GetNum being omitted.

Expected behavior Find all 4 references.

Please complete the following information: VBE_Extras v1.1.6.0 [Debug], build 13 Jan 2023 12:17:17 LGF: v2.1.0.0 LGS: v3.0.1.0 LFF: v3.6.4.0 .NET Framework 4.8.4515.0 CLR: v4.0.30319 Microsoft Windows 10.0.19045 : X64 Dev device Excel 365 (16.0, 15831, WIN64, VBA7) VBE 7.01 UI Lang: en-US Host: EXCEL.EXE v16.0.15831.20208

john-tvh commented 1 year ago

Fixed in release 1.1.6.1