5 writes to _ranges
PresentationFramework (5)
MS\Internal\Documents\TextContainerHelper.cs (5)
32_ranges = null; 55_ranges = new int[_size * 2]; 181_ranges = new int[8]; // 4 entries 269_ranges = ranges; 279_ranges = null;
48 references to _ranges
PresentationFramework (48)
MS\Internal\Documents\TextContainerHelper.cs (48)
53Invariant.Assert(other._ranges != null); 54Invariant.Assert(other._ranges.Length >= (other._size * 2)); 56for (int i = 0; i < _ranges.Length; i++) 58_ranges[i] = other._ranges[i]; 73Merge(other._ranges[i * 2], other._ranges[i * 2 + 1]); 102_textContainer.CreatePointerAtOffset(_ranges[i * 2], LogicalDirection.Forward), 103_textContainer.CreatePointerAtOffset(_ranges[i * 2 + 1], LogicalDirection.Backward), 133if (cpPos >= _ranges[i * 2] && cpPos <= _ranges[i * 2 + 1]) 138if (cpPos == _ranges[i * 2] && position.LogicalDirection == LogicalDirection.Backward || 139cpPos == _ranges[i * 2 + 1] && position.LogicalDirection == LogicalDirection.Forward) 157startPosition = _textContainer.CreatePointerAtOffset(IsSimple ? _cpFirst : _ranges[0], LogicalDirection.Forward); 169endPosition = _textContainer.CreatePointerAtOffset(IsSimple ? _cpLast : _ranges[(_size - 1) * 2 + 1], LogicalDirection.Backward); 184_ranges[0] = _cpFirst; 185_ranges[1] = _cpLast; 186_ranges[2] = cpFirst; 187_ranges[3] = cpLast; 191_ranges[0] = cpFirst; 192_ranges[1] = cpLast; 193_ranges[2] = _cpFirst; 194_ranges[3] = _cpLast; 208if (cpLast < _ranges[i * 2]) 214_ranges[j + 2] = _ranges[j]; 216_ranges[i * 2] = cpFirst; 217_ranges[i * 2 + 1] = cpLast; 221else if (cpFirst <= _ranges[i * 2 + 1]) 224_ranges[i * 2] = Math.Min(_ranges[i * 2], cpFirst); 225_ranges[i * 2 + 1] = Math.Max(_ranges[i * 2 + 1], cpLast); 235_ranges[_size * 2] = cpFirst; 236_ranges[_size * 2 + 1] = cpLast; 245if (_ranges[pos * 2 + 1] >= _ranges[(pos + 1) * 2]) 247_ranges[pos * 2 + 1] = Math.Max(_ranges[pos * 2 + 1], _ranges[(pos + 1) * 2 + 1]); 250_ranges[i] = _ranges[i + 2]; 261Invariant.Assert(_ranges != null); 262if (_ranges.Length < (_size + 1) * 2) 264int[] ranges = new int[_ranges.Length * 2]; 267ranges[i] = _ranges[i]; 276_cpFirst = _ranges[0]; 277_cpLast = _ranges[1];