Compiler generated symbol names cannot be used as source locations, these names are not pointing to any source files. Instead, use the current location which is the best we have (not a silver bullet, it will usually point to the scope entry when dealing with compiler generated symbols, which might not be the most helpful to a user, but at least help narrowing down the function causing the error).
Compiler generated symbol names cannot be used as source locations, these names are not pointing to any source files. Instead, use the current location which is the best we have (not a silver bullet, it will usually point to the scope entry when dealing with compiler generated symbols, which might not be the most helpful to a user, but at least help narrowing down the function causing the error).