[−][src]Enum rslint_parser::Event
Events emitted by the Parser, these events are later
made into a syntax tree with process
into TreeSink.
Variants
This event signifies the start of the node.
It should be either abandoned (in which case the
kind
is TOMBSTONE
, and the event is ignored),
or completed via a Finish
event.
All tokens between a Start
and a Finish
would
become the children of the respective node.
Fields of Start
Complete the previous Start
event
Fields of Finish
end: usize
Produce a single leaf-element.
n_raw_tokens
is used to glue complex contextual tokens.
For example, lexer tokenizes >>
as >
, >
, and
n_raw_tokens = 2
is used to produced a single >>
.
Fields of Token
kind: SyntaxKind
Fields of Error
err: ParserError
Implementations
impl Event
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erasable for T
unsafe fn unerase(this: NonNull<Erased>) -> NonNull<T>
const ACK_1_1_0: bool
fn erase(this: NonNull<Self>) -> NonNull<Erased>
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,