A container for DiagnosticMessage
[DebuggerDisplay("{Count} Errors: {HasErrors}")]
public class DiagnosticsBag : IEnumerable<DiagnosticMessage>, IEnumerable
kind:method, kind:property, kind:ctor. Press Esc to clear.DiagnosticsBag()Creates a new instance of a DiagnosticsBagDiagnosticsBag(IEnumerable<DiagnosticMessage>)Creates a new instance of a DiagnosticsBag.CountGets the number of messages.HasErrorsGets a boolean indicating if this bag contains any error messages.Item[Int32]Gets the message at the specified index.Add(DiagnosticMessage)Adds the specified message to this bag.AddRange(IEnumerable<DiagnosticMessage>)Adds the specified list of messages to this bag.Clear()Clear this bag including the error state.Error(SourceSpan, String)Adds an error messageGetEnumerator()Gets the enumerator of DiagnosticMessageWarning(SourceSpan, String)Adds a warning message