pub struct SyntaxNode {
pub kind: String,
pub start_position: Position,
pub end_position: Position,
pub text: String,
pub children: Vec<SyntaxNode>,
pub named_children: HashMap<String, Vec<SyntaxNode>>,
pub leading_comments: Vec<String>,
}
Expand description
Syntax node in the tree
Fields§
§kind: String
§start_position: Position
§end_position: Position
§text: String
§children: Vec<SyntaxNode>
§named_children: HashMap<String, Vec<SyntaxNode>>
§leading_comments: Vec<String>
Trait Implementations§
Source§impl Clone for SyntaxNode
impl Clone for SyntaxNode
Source§fn clone(&self) -> SyntaxNode
fn clone(&self) -> SyntaxNode
Returns a duplicate 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 moreSource§impl Debug for SyntaxNode
impl Debug for SyntaxNode
Source§impl<'de> Deserialize<'de> for SyntaxNode
impl<'de> Deserialize<'de> for SyntaxNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SyntaxNode
impl RefUnwindSafe for SyntaxNode
impl Send for SyntaxNode
impl Sync for SyntaxNode
impl Unpin for SyntaxNode
impl UnwindSafe for SyntaxNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more