Basically it just extracts the first LineNumberNode in the expression and puts that in the error message/warning message. So even if the Julia backtrace is innaccurate, at least the message gives the key info.
coverage: 97.021% (+0.2%) from 96.833%
when pulling 235703aa35dd2f6ce02a23a9f4921530d85f1476 on better-source-info
into 028febc34f1a8db5c3b58080b72089557fad80cf on main.
Basically it just extracts the first
LineNumberNode
in the expression and puts that in the error message/warning message. So even if the Julia backtrace is innaccurate, at least the message gives the key info.