public override void DisplayError(SourceMap sourceMap) { if (_trace.Any()) { _trace.RemoveAt(_trace.Count - 1); _trace.Reverse(); _trace.RemoveAt(_trace.Count - 1); foreach (Span trace in _trace) { FormatEntry(trace, sourceMap, ColorExt.Surround("trace", Color.Red)); } } string newErrMsg = ColorExt.Surround(_errorMsg, Color.Bold); string errName = ColorExt.Surround($"{_type.Name()}_error", Color.Bold, Color.Red); FormatEntry(_errorSpan, sourceMap, $"{errName}: {newErrMsg}"); }