Method calls via selector operator (->
) do not correctly use implicit first parameter in completion/reference checking
#112
Milestone
The following code is a method on a
^d3d12.IDevice
(from thevendor:directx/d3d12
package):When using this with the selector operator in the editor completion will not give correct suggestions based on the parameter being passed in, because it thinks we are currently filling in the pointer to the device, when in fact we are filling in the second parameter (the pointer is passed implicitly):
descriptor_size := device->GetDescriptorHandleIncrementSize(.RTV)
The
.RTV
value here is recognized incorrectly as an unknown reference because the plugin does not realize that we are filling in theDESCRIPTOR_HEAP_TYPE
parameter:If we pass
nil
as a "first" argument the plugin has now caught up and will actually also give correct completion for the parameter:Completion:
The text was updated successfully, but these errors were encountered: