Lyricdev
GitHub

struct Span

pub struct Span :: [Equatable, Debug]

Conforms to Equatable, Debug.

Where a node stands: a file as the diagnostics name it, a line and a column from 1; "" and 0 where the node was built, not read.

Fields

pub file: string
pub line: int
pub column: int

Methods

pub static fn none(): Span

Returns the span of what was built, not read: file "", line and column 0.