mshr-h / vscode-systemverilog-support

[deprecated]use mshr-h/vscode-verilog-hdl-support
https://github.com/mshr-h/vscode-verilog-hdl-support
MIT License
22 stars 14 forks source link

Definition detection not working for rand variables #41

Closed djoffe closed 6 years ago

djoffe commented 6 years ago

When declaring a class attribute as rand, its definition is not detected:

class foo;
         int unsigned bar1;
    rand int unsigned bar2;

...

    function new(string name = "");
        super.new(name);

        bar1 = 1;
        bar2 = 2;
    endfunction
endclass

Right click on bar1, Peek definition: it works. Right click on bar2, Peek definition: "No definiton found for 'bar2'".