[C# has \#line](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/preprocessor-directives#error-and-warning-information), so we can do this. The IR will need to be changed to carry the line number, however.