3 writes to _defaultSeverityOpt
Microsoft.CodeAnalysis.Test.Utilities (3)
Diagnostics\DiagnosticDescription.cs (3)
93
_defaultSeverityOpt
= defaultSeverityOpt;
118
_defaultSeverityOpt
= defaultSeverityOpt;
129
_defaultSeverityOpt
= includeDefaultSeverity ? d.DefaultSeverity : (DiagnosticSeverity?)null;
14 references to _defaultSeverityOpt
Microsoft.CodeAnalysis.Test.Utilities (14)
Diagnostics\DiagnosticDescription.cs (14)
192
return new DiagnosticDescription(_code, _isWarningAsError, squiggledText, _arguments, _startPosition, _syntaxPredicate, false, _errorCodeType,
_defaultSeverityOpt
, _effectiveSeverityOpt, _isSuppressed);
197
return new DiagnosticDescription(_code, _isWarningAsError, _squiggledText, arguments, _startPosition, _syntaxPredicate, false, _errorCodeType,
_defaultSeverityOpt
, _effectiveSeverityOpt, _isSuppressed);
202
return new DiagnosticDescription(_code, _isWarningAsError, _squiggledText, arguments, _startPosition, _syntaxPredicate, true, _errorCodeType,
_defaultSeverityOpt
, _effectiveSeverityOpt, _isSuppressed);
207
return new DiagnosticDescription(_code, isWarningAsError, _squiggledText, _arguments, _startPosition, _syntaxPredicate, true, _errorCodeType,
_defaultSeverityOpt
, _effectiveSeverityOpt, _isSuppressed);
217
return new DiagnosticDescription(_code, _isWarningAsError, _squiggledText, _arguments, _startPosition, _syntaxPredicate, true, _errorCodeType,
_defaultSeverityOpt
, effectiveSeverity, _isSuppressed);
225
return new DiagnosticDescription(_code, _isWarningAsError, _squiggledText, _arguments, new LinePosition(line - 1, column - 1), _syntaxPredicate, _argumentOrderDoesNotMatter, _errorCodeType,
_defaultSeverityOpt
, _effectiveSeverityOpt, _isSuppressed);
234
return new DiagnosticDescription(_code, _isWarningAsError, _squiggledText, _arguments, _startPosition, syntaxPredicate, _argumentOrderDoesNotMatter, _errorCodeType,
_defaultSeverityOpt
, _effectiveSeverityOpt, _isSuppressed);
244
public DiagnosticSeverity? DefaultSeverity =>
_defaultSeverityOpt
;
337
if (
_defaultSeverityOpt
!= d.
_defaultSeverityOpt
||
358
if (
_defaultSeverityOpt
!= null)
359
hashCode = Hash.Combine(hashCode, ((int)
_defaultSeverityOpt
.Value).GetHashCode());
447
if (
_defaultSeverityOpt
!= null)
449
sb.Append($".WithDefaultSeverity(DiagnosticSeverity.{
_defaultSeverityOpt
.Value.ToString()})");