public ErrorDiagnosticException(ErrorDiagnostic diagnostic, Exception?inner = null)
     : base(diagnostic.Message, inner)
 {
     Diagnostic = diagnostic;
 }
Пример #2
0
 public static bool IsCyclicExpressionError(ErrorDiagnostic diagnostic) =>
 string.Equals(diagnostic.Code, DiagnosticBuilder.BCP061CyclicExpressionCode, StringComparison.OrdinalIgnoreCase);