3 writes to _startPosition
Microsoft.CodeAnalysis.Test.Utilities (3)
Diagnostics\DiagnosticDescription.cs (3)
89
_startPosition
= startLocation;
114
_startPosition
= startLocation;
187
_startPosition
= _location.GetMappedLineSpan().StartLinePosition;
22 references to _startPosition
Microsoft.CodeAnalysis.Test.Utilities (22)
Diagnostics\DiagnosticDescription.cs (22)
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);
234
return new DiagnosticDescription(_code, _isWarningAsError, _squiggledText, _arguments,
_startPosition
, syntaxPredicate, _argumentOrderDoesNotMatter, _errorCodeType, _defaultSeverityOpt, _effectiveSeverityOpt, _isSuppressed);
239
public bool HasLocation =>
_startPosition
!= null;
240
public int LocationLine =>
_startPosition
.Value.Line + 1;
241
public int LocationCharacter =>
_startPosition
.Value.Character + 1;
269
if (
_startPosition
!= null)
271
if (d.
_startPosition
!= null)
273
if (
_startPosition
.Value != d.
_startPosition
.Value)
356
if (
_startPosition
!= null)
357
hashCode = Hash.Combine(hashCode,
_startPosition
.Value.GetHashCode());
433
if (
_startPosition
!= null)
436
sb.Append(
_startPosition
.Value.Line + 1);
438
sb.Append(
_startPosition
.Value.Character + 1);
593
if (diagnostic.
_startPosition
== null)
597
if (last != null && comparer.Compare(last.
_startPosition
, diagnostic.
_startPosition
) > 0)