private void EncounterError(string msg, CXSourceLocation location) { Console.Error.WriteLine($"heart-codegen error: {msg}"); Console.Error.WriteLine($"\tEncountered at: {location.ToString()}"); System.Diagnostics.Debug.WriteLine($"heart-codegen error: {msg}"); System.Diagnostics.Debug.WriteLine($"\tEncountered at: {location.ToString()}"); ErrorCode = 1; }