contains method

bool contains(
  1. DiffCommentLineKey key
)

Whether key belongs to this source range.

Implementation

bool contains(DiffCommentLineKey key) =>
    key.path == start.path &&
    key.side == start.side &&
    key.line >= start.line &&
    key.line <= end.line;