5 writes to _errorCodeType
Microsoft.CodeAnalysis.Test.Utilities (5)
Diagnostics\DiagnosticDescription.cs (5)
92
_errorCodeType
= errorCodeType ?? code.GetType();
117
_errorCodeType
= errorCodeType ?? code.GetType();
137
_errorCodeType
= typeof(string);
145
_errorCodeType
= typeof(int);
149
_errorCodeType
= dinfo.Info.MessageProvider.ErrorCodeType;
11 references to _errorCodeType
Microsoft.CodeAnalysis.Test.Utilities (11)
Diagnostics\DiagnosticDescription.cs (11)
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);
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);
384
if (
_errorCodeType
== typeof(string))
390
sb.Append(
_errorCodeType
.Name);
392
sb.Append(Enum.GetName(
_errorCodeType
, _code));