[nimsuggest] fix def call on identifier 2 times on the line (#20228)

- apparently TLineInfo's implementation of `==` ignores the column. After I fixed
the code to use exact TLineInfo comparison I fixed several other issues hidden
by that issue.

- Replaced `tuple[sym, info]` with `SymInfoPair`
This commit is contained in:
Ivan Yonchovski 2022-08-30 22:02:15 +03:00 • committed by GitHub
commit d4c0d35b32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 76 additions and 48 deletions

View file

@ -0,0 +1,9 @@
let foo = 30
let bar = foo + fo#[!]#o + foo
discard """
$nimsuggest --v3 --tester $file
>def $1
def skLet tv3_definition.foo int $file 2 4 "" 100
"""