Struct clang::Token [] [src]

pub struct Token<'tu> {
    // some fields omitted
}

A lexed piece of a source file.

Methods

impl<'tu> Token<'tu>
[src]

fn get_kind(&self) -> TokenKind

Returns the categorization of this token.

fn get_location(&self) -> SourceLocation<'tu>

Returns the source location of this token.

fn get_range(&self) -> SourceRange<'tu>

Returns the source range of this token.

fn get_spelling(&self) -> String

Returns the textual representation of this token.

Trait Implementations

impl<'tu> Clone for Token<'tu>
[src]

fn clone(&self) -> Token<'tu>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<'tu> Copy for Token<'tu>
[src]

impl<'tu> Debug for Token<'tu>
[src]

fn fmt(&self, formatter: &mut Formatter) -> Result

Formats the value using the given formatter.