wat_syntax 0.10.1

WebAssembly Text Format syntaxes.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
mod element;
mod iter;
mod node;
mod ptr;
mod token;
mod traversal;

pub use self::{iter::SyntaxNodeChildren, node::SyntaxNode, ptr::SyntaxNodePtr, token::SyntaxToken};

#[derive(Clone, Debug)]
/// The result type of [`SyntaxNode::token_at_offset`] method, representing there may be zero, one or two tokens at the given offset.
pub enum TokenAtOffset {
    None,
    Single(SyntaxToken),
    Between(SyntaxToken, SyntaxToken),
}