Skip to main content

RubyToken

Type Alias RubyToken 

Source
pub type RubyToken = Token<RubyTokenType>;
Expand description

Represents a token in a Ruby source file.

Aliased Type§

pub struct RubyToken {
    pub kind: RubyTokenType,
    pub span: Range<usize>,
}

Fields§

§kind: RubyTokenType

The kind/category of this kind (e.g., keyword, identifier, number)

§span: Range<usize>

The byte range in the source text that this kind occupies