*/ public function distance(SourceLocation $other): int; /** * Returns a span that covers only a single point: this location. */ public function pointSpan(): SourceSpan; /** * Compares two locations. * * It returns a negative integer if $this is ordered before $other, * a positive integer if $this is ordered after $other, * and zero if $this and $other are ordered together. * * $other must have the same source URL as $this. */ public function compareTo(SourceLocation $other): int; }