5 writes to _ranges
PresentationFramework (5)
MS\Internal\Documents\TextContainerHelper.cs (5)
35_ranges = null; 58_ranges = new int[_size * 2]; 184_ranges = new int[8]; // 4 entries 272_ranges = ranges; 282_ranges = null;
48 references to _ranges
PresentationFramework (48)
MS\Internal\Documents\TextContainerHelper.cs (48)
56Invariant.Assert(other._ranges != null); 57Invariant.Assert(other._ranges.Length >= (other._size * 2)); 59for (int i = 0; i < _ranges.Length; i++) 61_ranges[i] = other._ranges[i]; 76Merge(other._ranges[i * 2], other._ranges[i * 2 + 1]); 105_textContainer.CreatePointerAtOffset(_ranges[i * 2], LogicalDirection.Forward), 106_textContainer.CreatePointerAtOffset(_ranges[i * 2 + 1], LogicalDirection.Backward), 136if (cpPos >= _ranges[i * 2] && cpPos <= _ranges[i * 2 + 1]) 141if (cpPos == _ranges[i * 2] && position.LogicalDirection == LogicalDirection.Backward || 142cpPos == _ranges[i * 2 + 1] && position.LogicalDirection == LogicalDirection.Forward) 160startPosition = _textContainer.CreatePointerAtOffset(IsSimple ? _cpFirst : _ranges[0], LogicalDirection.Forward); 172endPosition = _textContainer.CreatePointerAtOffset(IsSimple ? _cpLast : _ranges[(_size - 1) * 2 + 1], LogicalDirection.Backward); 187_ranges[0] = _cpFirst; 188_ranges[1] = _cpLast; 189_ranges[2] = cpFirst; 190_ranges[3] = cpLast; 194_ranges[0] = cpFirst; 195_ranges[1] = cpLast; 196_ranges[2] = _cpFirst; 197_ranges[3] = _cpLast; 211if (cpLast < _ranges[i * 2]) 217_ranges[j + 2] = _ranges[j]; 219_ranges[i * 2] = cpFirst; 220_ranges[i * 2 + 1] = cpLast; 224else if (cpFirst <= _ranges[i * 2 + 1]) 227_ranges[i * 2] = Math.Min(_ranges[i * 2], cpFirst); 228_ranges[i * 2 + 1] = Math.Max(_ranges[i * 2 + 1], cpLast); 238_ranges[_size * 2] = cpFirst; 239_ranges[_size * 2 + 1] = cpLast; 248if (_ranges[pos * 2 + 1] >= _ranges[(pos + 1) * 2]) 250_ranges[pos * 2 + 1] = Math.Max(_ranges[pos * 2 + 1], _ranges[(pos + 1) * 2 + 1]); 253_ranges[i] = _ranges[i + 2]; 264Invariant.Assert(_ranges != null); 265if (_ranges.Length < (_size + 1) * 2) 267int[] ranges = new int[_ranges.Length * 2]; 270ranges[i] = _ranges[i]; 279_cpFirst = _ranges[0]; 280_cpLast = _ranges[1];