diff options
author | Jake Leahy <jake@leahy.dev> | 2023-03-21 04:48:13 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-20 18:48:13 +0100 |
commit | 741fed716edb163c95475db79b5a1ec95de11fa6 (patch) | |
tree | 34b0b32a413dca1b8f409c33a3f9fb588f990f22 /lib | |
parent | ae06c6623d3bca0f3eb080b4e6f18d2055ca9351 (diff) | |
download | Nim-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