pub struct NodeData<'a> {
pub loc: SourceRange<'a>,
pub stx: Syntax<'a>,
pub scope: Scope<'a>,
}
Fields§
§loc: SourceRange<'a>
§stx: Syntax<'a>
§scope: Scope<'a>
Implementations§
source§impl<'a> NodeData<'a>
impl<'a> NodeData<'a>
sourcepub fn take(&mut self, session: &'a Session) -> &'a mut NodeData<'a>
pub fn take(&mut self, session: &'a Session) -> &'a mut NodeData<'a>
Move this node into a new node (also allocated on the arena and returned as a mutable reference). This node will be left in an invalid state and must not be used any further.
sourcepub fn error(&self, typ: SyntaxErrorType) -> SyntaxError<'a>
pub fn error(&self, typ: SyntaxErrorType) -> SyntaxError<'a>
Create an error at this node’s location.