Exemple #1
0
 internal void Add(SlothDiagnostic diagnostic)
 {
     DiagnosticBag?.Add(diagnostic);
 }
Exemple #2
0
        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);
        }