summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorJake Leahy <jake@leahy.dev>2023-03-21 04:48:13 +1100
committerGitHub <noreply@github.com>2023-03-20 18:48:13 +0100
commit741fed716edb163c95475db79b5a1ec95de11fa6 (patch)
tree34b0b32a413dca1b8f409c33a3f9fb588f990f22 /lib
parentae06c6623d3bca0f3eb080b4e6f18d2055ca9351 (diff)
downloadNim-741fed716edb163c95475db79b5a1ec95de11fa6.tar.gz
Use `analyseIfAddressTaken` logic for checking if address is taken in converter (#21533)
* Add a test case

There are way more test cases (See all branches of analyseIfAddressTaken but this covers at least a second branch

* Port analyseIfAddressTaken from semexprs to sigmatch

This was done since we cannot import sem or semexprs (circular import) but we need the rest of the logic. In needs to be done here since the converter isn't semmed afterwards and so we can't just leave the process til later use the version from semexprs

* Less hacky solution which has the checking be done in analyseIfAddressTakenInCall

This was done instead of the recommendation on removing it since sfAddrTaken is used in places other than the backend

* Remove weird whitespace

* Still check nkHiddenAddr if we are checking a converter
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions