MrKWatkins.Ast Help

SourceFilePosition<TSelf, TFile>.Overlaps Method

Definition

Returns true if two positions for the same file overlap. Zero length positions will overlap only if they are inside the other position. If they are at the start or end index of the other position they will not overlap. Two zero length positions never overlap.

public bool Overlaps(SourceFilePosition<TSelf, TFile> other);

Parameters

Name

Type

Description

other

SourceFilePosition<TSelf, TFile>

Returns

Boolean

true if the two positions overlap, false otherwise.

Last modified: 22 November 2024