3 writes to _spans
Microsoft.NET.StringTools (3)
InternableString.cs (3)
123_spans = null; 142_spans = null; 155_spans = stringBuilder.Spans;
15 references to _spans
Microsoft.NET.StringTools (15)
InternableString.cs (15)
54ReadOnlyMemory<char> span = _string._spans![_spanIndex]; 77if (_string._spans != null) 79while (_spanIndex < _string._spans.Count) 81if (newCharIndex < _string._spans[_spanIndex].Length) 193if (_spans != null) 196foreach (ReadOnlyMemory<char> span in _spans) 232if (_inlineSpan.IsEmpty && _spans?[0].Length == Length) 234return _spans[0].ToString(); 254if (_spans != null) 256foreach (ReadOnlyMemory<char> span in _spans) 292if (_inlineSpan.IsEmpty && _spans?.Count == 1 && _spans[0].Length == Length) 294return _spans[0].Span == str.AsSpan(); 329if (_spans != null) 331foreach (ReadOnlyMemory<char> span in _spans)