pub type Span = Range<usize>;Expand description
A span in the source code represented as byte offsets.
Used to track the exact location of every AST node in the original source, enabling precise error messages and IDE features.
§Example
use busbar_sf_agentscript::ast::Span;
let span: Span = 0..10; // Bytes 0 through 9
assert_eq!(span.start, 0);
assert_eq!(span.end, 10);Aliased Type§
pub struct Span {
pub start: usize,
pub end: usize,
}Fields§
§start: usizeThe lower bound of the range (inclusive).
end: usizeThe upper bound of the range (exclusive).