public RelatedLocation(TextSpan location, DocumentId documentId, RelatedLocationType type, bool isReference = false, TextSpan complexifiedTargetSpan = default) { this.ConflictCheckSpan = location; this.Type = type; this.IsReference = isReference; this.DocumentId = documentId; this.ComplexifiedTargetSpan = complexifiedTargetSpan; }
public RelatedLocation(TextSpan conflictCheckSpan, DocumentId documentId, RelatedLocationType type, bool isReference = false, TextSpan complexifiedTargetSpan = default) { ConflictCheckSpan = conflictCheckSpan; Type = type; IsReference = isReference; DocumentId = documentId; ComplexifiedTargetSpan = complexifiedTargetSpan; }
public RelatedLocation(TextSpan location, DocumentId documentId, RelatedLocationType type, bool isReference = false, TextSpan complexifiedTargetSpan = default(TextSpan)) { this.ConflictCheckSpan = location; this.Type = type; this.IsReference = isReference; this.DocumentId = documentId; this.ComplexifiedTargetSpan = complexifiedTargetSpan; }
public RelatedLocation WithType(RelatedLocationType type) =>
public RelatedLocation WithType(RelatedLocationType type) => new RelatedLocation(ConflictCheckSpan, DocumentId, type, IsReference, ComplexifiedTargetSpan);