suggest: try to find the implementation of a symbol when def is used (#15555)

* suggest: try to find the implementation of a symbol when def is used

* suggest: return all declarations of the symbol on `def`
This commit is contained in:
alaviss 2020-10-14 10:08:56 -05:00 • committed by GitHub
commit c2ba4ef979
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 7 deletions

View file

@ -0,0 +1,13 @@
discard """
$nimsuggest --tester $file
>def $1
def;;skProc;;tdef_forward.hello;;proc (): string;;$file;;8;;5;;"";;100
def;;skProc;;tdef_forward.hello;;proc (): string;;$file;;12;;5;;"";;100
"""
proc hello(): string
hel#[!]#lo()
proc hello(): string =
"Hello"