Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members

CCM::Location Struct Reference

List of all members.

Detailed Description

Keeps track of the location in the program.

This uses a compact representation and a couple of auxiliary structures to keep track of tokens to (file,line) mappings.

We could probably also keep track of columns by storing those in 8 bits (and say, map anything after char 255 to be `255+').


Public Member Functions

 Location (int row)
override string ToString ()

Static Public Member Functions

 Location ()
void Push (string name)
bool IsNull (Location l)
 Whether the Location is Null.


Public Attributes

int token

Static Public Attributes

Hashtable map
Hashtable sym_docs
ArrayList list
int global_count
int module_base
readonly Location Null

Properties

string Name
int Row
ISymbolDocumentWriter SymbolDocument


Constructor & Destructor Documentation

CCM::Location::Location  )  [static]
 

CCM::Location::Location int  row  ) 
 


Member Function Documentation

bool CCM::Location::IsNull Location  l  )  [static]
 

Whether the Location is Null.

void CCM::Location::Push string  name  )  [static]
 

override string CCM::Location::ToString  ) 
 


Member Data Documentation

int CCM::Location::global_count [static]
 

ArrayList CCM::Location::list [static]
 

Hashtable CCM::Location::map [static]
 

int CCM::Location::module_base [static]
 

readonly Location CCM::Location::Null [static]
 

Hashtable CCM::Location::sym_docs [static]
 

int CCM::Location::token
 


Property Documentation

string CCM::Location::Name [get]
 

int CCM::Location::Row [get]
 

ISymbolDocumentWriter CCM::Location::SymbolDocument [get]
 


The documentation for this struct was generated from the following file:
Generated on Mon Jun 21 01:20:50 2004 for cs2ccmb by doxygen 1.3.7