Struct mica::ll::ast::NodeBuilder
source · pub struct NodeBuilder<'a> { /* private fields */ }
Expand description
A node builder.
Implementations§
source§impl<'a> NodeBuilder<'a>
impl<'a> NodeBuilder<'a>
sourcepub fn with_location(self, location: Location) -> Self
pub fn with_location(self, location: Location) -> Self
Sets the location of the node.
sourcepub fn with_number(self, number: f64) -> Self
pub fn with_number(self, number: f64) -> Self
Sets the number data of the node.
sourcepub fn with_string(self, string: Rc<str>) -> Self
pub fn with_string(self, string: Rc<str>) -> Self
Sets the string data of the node.
sourcepub fn with_children(self, children: Vec<NodeId>) -> Self
pub fn with_children(self, children: Vec<NodeId>) -> Self
Sets the children data of the node.