Struct sixtyfps_compilerlib::parser::SyntaxToken [−][src]
pub struct SyntaxToken { pub token: SyntaxToken<Language>, pub source_file: SourceFile, }
Fields
token: SyntaxToken<Language>
source_file: SourceFile
Implementations
Methods from Deref<Target = SyntaxToken<Language>>
Returns a green tree, equal to the green tree this token belongs two, except with this token substitute. The complexity of operation is proportional to the depth of the tree
pub fn siblings_with_tokens(
&self,
direction: Direction
) -> impl Iterator<Item = NodeOrToken<SyntaxNode<L>, SyntaxToken<L>>>
Next token in the tree (i.e, not necessary a sibling).
Previous token in the tree (i.e, not necessary a sibling).
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for SyntaxToken
impl !Send for SyntaxToken
impl !Sync for SyntaxToken
impl Unpin for SyntaxToken
impl !UnwindSafe for SyntaxToken
Blanket Implementations
Mutably borrows from an owned value. Read more