luau_parser/types/
range.rs

1//! The [`Range`] struct.
2
3use luau_lexer::prelude::Position;
4
5#[derive(Clone, Copy, Debug, Default, Hash, PartialEq, Eq, PartialOrd, Ord)]
6#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
7/// A struct representing the range of any item.
8pub struct Range {
9    /// Start [`position`](Position) of the node.
10    pub start: Position,
11
12    /// End [`position`](Position) of the node.
13    pub end: Position,
14}