summary refs log tree commit diff stats
path: root/compiler/parampatterns.nim
diff options
context:
space:
mode:
authorJake Leahy <jake@leahy.dev>2024-09-23 18:14:26 +1000
committerGitHub <noreply@github.com>2024-09-23 10:14:26 +0200
commit6f6e34ebb037cdc83f8ec24b0422e70fc70d7107 (patch)
treed663619bd0de426b1a1a9c7c31371f3bd5aecdb2 /compiler/parampatterns.nim
parenta55c15c651b805c5eca4475f9845a57adf6cddef (diff)
downloadNim-6f6e34ebb037cdc83f8ec24b0422e70fc70d7107.tar.gz
Fix line info used for `UnunsedImport` from subdirectories (#24158)
When importing from subdirectories, the line info used in `UnusedImport`
warning would be the `/` node and not the actual module node. More
obvious with grouped imports where all unused imports would show the
same column

![image](https://github.com/user-attachments/assets/42850130-1e0e-46b9-bd72-54864a1ad41c)

Fix is to just use the last child node for infixes when getting the line
info
Diffstat (limited to 'compiler/parampatterns.nim')
0 files changed, 0 insertions, 0 deletions