Class Graph_TokenMappingTraversal#

Inheritance Relationships#

Base Type#

Class Documentation#

class Graph_TokenMappingTraversal : public AstSimpleProcessing#

Public Functions

Graph_TokenMappingTraversal(std::vector<stream_element*> &input_tokenList, std::map<SgNode*, TokenStreamSequenceToNodeMapping*> &tokenMap)#
virtual void visit(SgNode *n)#

this method is called at every traversed node.

Public Members

std::map<SgNode*, TokenStreamSequenceToNodeMapping*> &tokenStreamSequenceMap#
std::vector<stream_element*> &tokenList#

Public Static Functions

static void graph_ast_and_token_stream(SgSourceFile *file, std::vector<stream_element*> &tokenList, std::map<SgNode*, TokenStreamSequenceToNodeMapping*> &tokenStreamSequenceMap)#
static void graph_ast_and_token_stream(SgSourceFile *file)#
static void graph_ast_and_token_stream(std::string filename)#
static std::string getTokenIdString(int i)#

Public Static Attributes

static std::ofstream file#
static int *first_leading_whitespace_start#