Struct pomelo_parse::parser::NodeBuilder
source · Expand description
A wrapper for [rowan::GreenNodeBuilder
].
Tuple Fields§
§0: Rc<RefCell<GreenNodeBuilder<'static>>>
Implementations§
source§impl NodeBuilder
impl NodeBuilder
pub(crate) fn new() -> Self
pub(crate) fn start_node(&mut self, kind: SyntaxKind) -> NodeGuard
pub(crate) fn checkpoint(&self) -> Checkpoint
pub(crate) fn start_node_at(
&mut self,
checkpoint: Checkpoint,
kind: SyntaxKind
) -> NodeGuard
pub(crate) fn push_token(&mut self, token: Token<'_>)
pub(crate) fn finish(self) -> GreenNode
Trait Implementations§
source§impl Clone for NodeBuilder
impl Clone for NodeBuilder
source§fn clone(&self) -> NodeBuilder
fn clone(&self) -> NodeBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more