Replace field accession with getter function usage

This commit is contained in:
Thomas A. Christensen II 2023-01-03 20:07:31 -06:00
parent dd405c5f4b
commit ef4460bbbf

View file

@ -129,7 +129,7 @@ reference(v::Variant) = v.ref
Base.:(==)(x::Variant, y::Variant) = x.ref == y.ref && x.edits == y.edits Base.:(==)(x::Variant, y::Variant) = x.ref == y.ref && x.edits == y.edits
function reconstruct!(seq::S, x::Variant{S}) where {S} function reconstruct!(seq::S, x::Variant{S}) where {S}
len = length(x.ref) + sum(edit -> lendiff(edit), x.edits) len = length(x.ref) + sum(edit -> _lendiff(edit), _edits(x))
resize!(seq, len % UInt) resize!(seq, len % UInt)
refpos = seqpos = 1 refpos = seqpos = 1
for edit in x.edits for edit in x.edits