Struct kailua_syntax::NestedToken [] [src]

pub struct NestedToken {
    pub tok: Spanned<Tok>,
    pub depth: u16,
    pub category: NestingCategory,
    pub serial: NestingSerial,
}

A token with the nesting information.

Conceptually each token updates the current list of open nestings, so the nesting information here applies to applies to the token and following whitespaces. For example, do return end has one nesting, which span is do return and one space.

Fields

The base token.

The current nesting depth.

The major category of the current nesting.

The serial number of the current nesting.

Trait Implementations

impl Clone for NestedToken
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for NestedToken
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for NestedToken
[src]

Formats the value using the given formatter.