Exemplo n.º 1
0
 public ConflictLocationInfo(RelatedLocation location)
 {
     Debug.Assert(location.ComplexifiedTargetSpan.Contains(location.ConflictCheckSpan) || location.Type == RelatedLocationType.UnresolvableConflict);
     this.ComplexifiedSpan       = location.ComplexifiedTargetSpan;
     this.DocumentId             = location.DocumentId;
     this.OriginalIdentifierSpan = location.ConflictCheckSpan;
 }
Exemplo n.º 2
0
        internal void AddOrReplaceRelatedLocation(RelatedLocation location)
        {
            var existingRelatedLocation = _relatedLocations.Where(rl => rl.ConflictCheckSpan == location.ConflictCheckSpan && rl.DocumentId == location.DocumentId).FirstOrDefault();

            if (existingRelatedLocation != null)
            {
                _relatedLocations.Remove(existingRelatedLocation);
            }

            AddRelatedLocation(location);
        }
Exemplo n.º 3
0
 internal void AddRelatedLocation(RelatedLocation location)
 {
     _relatedLocations.Add(location);
 }