[][src]Trait moore_common::util::HasSpan

pub trait HasSpan {
    pub fn span(&self) -> Span;

    pub fn human_span(&self) -> Span { ... }
}

Provides span information for syntax nodes.

Required methods

pub fn span(&self) -> Span[src]

Obtain the full span of the input file that this node covers.

Loading content...

Provided methods

pub fn human_span(&self) -> Span[src]

Obtain a span which can be used to refer to this node in error messages presented to humans. This will generally be the name for things like entities, processes, and variables. Defaults to return whatever span() returns.

Loading content...

Implementors

impl<T> HasSpan for Spanned<T>[src]

Loading content...