Struct clang::token::Token [−][src]
pub struct Token<'tu> { /* fields omitted */ }
A lexed piece of a source file.
Methods
impl<'tu> Token<'tu>
[src]
impl<'tu> Token<'tu>
pub fn get_kind(&self) -> TokenKind
[src]
pub fn get_kind(&self) -> TokenKind
Returns the categorization of this token.
pub fn get_spelling(&self) -> String
[src]
pub fn get_spelling(&self) -> String
Returns the textual representation of this token.
pub fn get_location(&self) -> SourceLocation<'tu>
[src]
pub fn get_location(&self) -> SourceLocation<'tu>
Returns the source location of this token.
pub fn get_range(&self) -> SourceRange<'tu>
[src]
pub fn get_range(&self) -> SourceRange<'tu>
Returns the source range of this token.
Trait Implementations
impl<'tu> Copy for Token<'tu>
[src]
impl<'tu> Copy for Token<'tu>
impl<'tu> Clone for Token<'tu>
[src]
impl<'tu> Clone for Token<'tu>
fn clone(&self) -> 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[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'tu> Debug for Token<'tu>
[src]
impl<'tu> Debug for Token<'tu>