internal void Add(SlothDiagnostic diagnostic) { DiagnosticBag?.Add(diagnostic); }
internal static void Error(BindingDiagnosticBag diagnostics, ErrorCode code, SyntaxNode syntax, params object[] args) { var diagnostic = new SlothDiagnostic(new DiagnosticInfo(code, args), syntax.Location); diagnostics.Add(diagnostic); }