pedant-core 0.20.2

Analysis engine for pedant: IR extraction, style checks, and capability detection
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! A half-open source range in the coordinates `syn` reports.

use crate::ir::facts::IrSpan;

/// Where a site starts and where it ends.
///
/// Both points use `syn`'s coordinates: a one-based line and a zero-based
/// character column. The report's zero-based UTF-8 byte columns are derived
/// from these by the resolver, which holds the exact source text.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct IrRange {
    /// The inclusive start point.
    pub start: IrSpan,
    /// The exclusive end point.
    pub end: IrSpan,
}