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)
192return new DiagnosticDescription(_code, _isWarningAsError, squiggledText, _arguments, _startPosition, _syntaxPredicate, false, _errorCodeType, _defaultSeverityOpt, _effectiveSeverityOpt, _isSuppressed); 197return new DiagnosticDescription(_code, _isWarningAsError, _squiggledText, arguments, _startPosition, _syntaxPredicate, false, _errorCodeType, _defaultSeverityOpt, _effectiveSeverityOpt, _isSuppressed); 202return new DiagnosticDescription(_code, _isWarningAsError, _squiggledText, arguments, _startPosition, _syntaxPredicate, true, _errorCodeType, _defaultSeverityOpt, _effectiveSeverityOpt, _isSuppressed); 207return new DiagnosticDescription(_code, isWarningAsError, _squiggledText, _arguments, _startPosition, _syntaxPredicate, true, _errorCodeType, _defaultSeverityOpt, _effectiveSeverityOpt, _isSuppressed); 212return new DiagnosticDescription(_code, _isWarningAsError, _squiggledText, _arguments, _startPosition, _syntaxPredicate, true, _errorCodeType, defaultSeverity, _effectiveSeverityOpt, _isSuppressed); 217return new DiagnosticDescription(_code, _isWarningAsError, _squiggledText, _arguments, _startPosition, _syntaxPredicate, true, _errorCodeType, _defaultSeverityOpt, effectiveSeverity, _isSuppressed); 234return new DiagnosticDescription(_code, _isWarningAsError, _squiggledText, _arguments, _startPosition, syntaxPredicate, _argumentOrderDoesNotMatter, _errorCodeType, _defaultSeverityOpt, _effectiveSeverityOpt, _isSuppressed); 239public bool HasLocation => _startPosition != null; 240public int LocationLine => _startPosition.Value.Line + 1; 241public int LocationCharacter => _startPosition.Value.Character + 1; 269if (_startPosition != null) 271if (d._startPosition != null) 273if (_startPosition.Value != d._startPosition.Value) 356if (_startPosition != null) 357hashCode = Hash.Combine(hashCode, _startPosition.Value.GetHashCode()); 433if (_startPosition != null) 436sb.Append(_startPosition.Value.Line + 1); 438sb.Append(_startPosition.Value.Character + 1); 593if (diagnostic._startPosition == null) 597if (last != null && comparer.Compare(last._startPosition, diagnostic._startPosition) > 0)