Trait hime_redist::symbols::SemanticElementTrait
source · pub trait SemanticElementTrait {
fn get_position(&self) -> Option<TextPosition>;
fn get_span(&self) -> Option<TextSpan>;
fn get_context(&self) -> Option<TextContext>;
fn get_symbol(&self) -> Symbol;
fn get_value(&self) -> Option<String>;
}
Expand description
A trait for a parsing element
Required Methods§
sourcefn get_position(&self) -> Option<TextPosition>
fn get_position(&self) -> Option<TextPosition>
Gets the position in the input text of this element
sourcefn get_context(&self) -> Option<TextContext>
fn get_context(&self) -> Option<TextContext>
Gets the context of this element in the input
sourcefn get_symbol(&self) -> Symbol
fn get_symbol(&self) -> Symbol
Gets the grammar symbol associated to this element