3 writes to _effectiveSeverityOpt
Microsoft.CodeAnalysis.Test.Utilities (3)
Diagnostics\DiagnosticDescription.cs (3)
94
_effectiveSeverityOpt
= effectiveSeverityOpt;
119
_effectiveSeverityOpt
= effectiveSeverityOpt;
130
_effectiveSeverityOpt
= includeEffectiveSeverity ? d.Severity : (DiagnosticSeverity?)null;
14 references to _effectiveSeverityOpt
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);
212
return new DiagnosticDescription(_code, _isWarningAsError, _squiggledText, _arguments, _startPosition, _syntaxPredicate, true, _errorCodeType, defaultSeverity,
_effectiveSeverityOpt
, _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);
245
public DiagnosticSeverity? EffectiveSeverity =>
_effectiveSeverityOpt
;
338
_effectiveSeverityOpt
!= d.
_effectiveSeverityOpt
)
360
if (
_effectiveSeverityOpt
!= null)
361
hashCode = Hash.Combine(hashCode, ((int)
_effectiveSeverityOpt
.Value).GetHashCode());
452
if (
_effectiveSeverityOpt
!= null)
454
sb.Append($".WithEffectiveSeverity(DiagnosticSeverity.{
_effectiveSeverityOpt
.Value.ToString()})");