isBefore method

bool isBefore(
  1. LspPosition other
)

Returns true if this position is before other.

Implementation

bool isBefore(LspPosition other) {
  if (line < other.line) return true;
  if (line > other.line) return false;
  return character < other.character;
}