dprint_swc_ext::common

Type Alias LineAndColumnDisplay

Source
pub type LineAndColumnDisplay = LineAndColumnDisplay;
Expand description

A 1-indexed line and column type which should be used for display purposes only (ex. in diagnostics).

Aliased Type§

struct LineAndColumnDisplay {
    pub line_number: usize,
    pub column_number: usize,
}

Fields§

§line_number: usize

The 1-indexed line number for display purposes.

§column_number: usize

The 1-indexed column number based on the indent width.