CsToken Struct Reference

C# Token. More...

List of all members.

Public Member Functions

 CsToken ()
 CsToken (CsTokenType type_, LineInfo line_info_)
 CsToken (CsTokenType type_, LineInfo line_info_, const TCHAR *original_begin, const TCHAR *original_end)
 CsToken (CsTokenType type_, CsLiteralType literal_type, const TCHAR *begin, const TCHAR *end, LineInfo line_info_)
 CsToken (CsTokenType type_, CsLiteralType literal_type, const TCHAR *begin, const TCHAR *end, LineInfo line_info_, const TCHAR *original_begin, const TCHAR *original_end)
 CsToken (CsTokenType type_, CsLiteralType literal_type, unsigned __int16 c_, LineInfo line_info_, const TCHAR *original_begin, const TCHAR *original_end)
 CsToken (CsTokenType type_, const TCHAR *begin, const TCHAR *end, hash_code_type hash_code, LineInfo line_info_)
 CsToken (CsTokenType type_, WPHashString phs, LineInfo line_info_, WPHashString original_phs)
 CsToken (CsTokenType type_, WPHashString phs, LineInfo line_info_, const TCHAR *original_begin, const TCHAR *original_end)
 CsToken (CsTokenType type_, const TCHAR *begin, const TCHAR *end, LineInfo line_info_, const TCHAR *original_begin, const TCHAR *original_end)
 CsToken (CsTokenType type_, WPHashString phs, CsLiteralType literal_type, LineInfo line_info_, WPHashString original_phs)
 CsToken (CsTokenType type_, LineEnum line_type, LineInfo line_info_)
 CsToken (CsTokenType type_, GreaterEnum greater_type, LineInfo line_info_)
 CsToken (CsTokenType type_, unsigned number_, LineInfo line_info_)
WPHashString getWPHashString () const
const TCHAR * getString () const
unsigned getStringLength () const
WPHashString getOriginalWPHashString () const
const TCHAR * getOriginalString () const
const TCHAR * getText () const
const TCHAR * getOriginalText () const
bool isVerbatim () const
bool operator== (const CsToken &rhs) const
bool operator!= (const CsToken &rhs) const
LineInfo getLineInfo () const
unsigned __int8 getType () const
void setType (unsigned __int8 type)
bool isDocumentationComment ()
unsigned evalSize () const
unsigned evalOriginalSize () const

Static Public Member Functions

static bool isKeyword (CsTokenType token_type)

Public Attributes

unsigned __int8 number
 Additional field.
unsigned __int16 c
 Char (for char literal and newline).
PHashString text
 Evaluated text.
PHashString original_text
 Original text.
LineInfo line_info
 Line info.
unsigned index
 Token index (1-based).

Private Attributes

unsigned __int8 type
 Token type.

Detailed Description

C# Token.


Constructor & Destructor Documentation

CsToken::CsToken (  )  [inline]
CsToken::CsToken ( CsTokenType  type_,
LineInfo  line_info_ 
) [inline]
CsToken::CsToken ( CsTokenType  type_,
LineInfo  line_info_,
const TCHAR *  original_begin,
const TCHAR *  original_end 
) [inline]
CsToken::CsToken ( CsTokenType  type_,
CsLiteralType  literal_type,
const TCHAR *  begin,
const TCHAR *  end,
LineInfo  line_info_ 
) [inline]
CsToken::CsToken ( CsTokenType  type_,
CsLiteralType  literal_type,
const TCHAR *  begin,
const TCHAR *  end,
LineInfo  line_info_,
const TCHAR *  original_begin,
const TCHAR *  original_end 
) [inline]
CsToken::CsToken ( CsTokenType  type_,
CsLiteralType  literal_type,
unsigned __int16  c_,
LineInfo  line_info_,
const TCHAR *  original_begin,
const TCHAR *  original_end 
) [inline]
CsToken::CsToken ( CsTokenType  type_,
const TCHAR *  begin,
const TCHAR *  end,
hash_code_type  hash_code,
LineInfo  line_info_ 
) [inline]
CsToken::CsToken ( CsTokenType  type_,
WPHashString  phs,
LineInfo  line_info_,
WPHashString  original_phs 
) [inline]
CsToken::CsToken ( CsTokenType  type_,
WPHashString  phs,
LineInfo  line_info_,
const TCHAR *  original_begin,
const TCHAR *  original_end 
) [inline]
CsToken::CsToken ( CsTokenType  type_,
const TCHAR *  begin,
const TCHAR *  end,
LineInfo  line_info_,
const TCHAR *  original_begin,
const TCHAR *  original_end 
) [inline]
CsToken::CsToken ( CsTokenType  type_,
WPHashString  phs,
CsLiteralType  literal_type,
LineInfo  line_info_,
WPHashString  original_phs 
) [inline]
CsToken::CsToken ( CsTokenType  type_,
LineEnum  line_type,
LineInfo  line_info_ 
) [inline]
CsToken::CsToken ( CsTokenType  type_,
GreaterEnum  greater_type,
LineInfo  line_info_ 
) [inline]
CsToken::CsToken ( CsTokenType  type_,
unsigned  number_,
LineInfo  line_info_ 
) [inline]

Member Function Documentation

unsigned CsToken::evalOriginalSize (  )  const
unsigned CsToken::evalSize (  )  const
LineInfo CsToken::getLineInfo (  )  const [inline]
const TCHAR* CsToken::getOriginalString (  )  const [inline]
const TCHAR* CsToken::getOriginalText (  )  const
WPHashString CsToken::getOriginalWPHashString (  )  const [inline]
const TCHAR* CsToken::getString (  )  const [inline]
unsigned CsToken::getStringLength (  )  const [inline]
const TCHAR* CsToken::getText (  )  const
unsigned __int8 CsToken::getType (  )  const [inline]
WPHashString CsToken::getWPHashString (  )  const [inline]
bool CsToken::isDocumentationComment (  )  [inline]
static bool CsToken::isKeyword ( CsTokenType  token_type  )  [inline, static]
bool CsToken::isVerbatim (  )  const [inline]
bool CsToken::operator!= ( const CsToken rhs  )  const [inline]
bool CsToken::operator== ( const CsToken rhs  )  const [inline]
void CsToken::setType ( unsigned __int8  type  )  [inline]

Member Data Documentation

unsigned __int16 CsToken::c

Char (for char literal and newline).

unsigned CsToken::index

Token index (1-based).

unsigned __int8 CsToken::number

Additional field.

Original text.

PHashString CsToken::text

Evaluated text.

unsigned __int8 CsToken::type [private]

Token type.

© 2010 metaspec