1 #ifndef DEFINITION_H_INCLUDED_
2 #define DEFINITION_H_INCLUDED_
Definition: definition.h:30
Type type_
Definition: definition.h:50
Definition: definition.h:47
Definition: definition.h:46
Definition: definition.h:31
virtual SgNode * get_ast_node()
Returns the associated ast node of the definition.
Definition: definition.cpp:21
Definition: definition.h:12
SgType * ast_type_pointer_
Definition: definition.h:102
Definition: definition.h:41
Definition: definition.h:25
Definition: definition.h:22
Definition: definition.h:40
Definition: definition.h:23
std::string get_file_name()
Get the name of the file where the declaration is located.
Definition: definition.cpp:45
bool has_source_location()
Determines if a ast node has an associated ast node.
Definition: definition.cpp:34
Definition: definition.h:33
Definition: definition.h:34
Definition: definition.h:29
Definition: definition.h:28
int get_line_number()
Get the line number of the instance.
Definition: definition.cpp:53
Definition: definition.h:45
virtual std::string get_ast_type_name()
Returns the name of the type of the ast node.
Definition: definition.cpp:15
Definition: definition.h:24
virtual SgType * get_ast_type()
Returns the type of the ast node.
Definition: definition.cpp:27
Definition(SgNode *ast_node, Type type=DefinitionType)
default constructor
Definition: definition.cpp:3
Definition: definition.h:35
SgNode * ast_node_
Definition: definition.h:101
Definition: definition.h:21
virtual std::string get_name()
Returns the name of the defintion.
Definition: definition.cpp:9
Definition: definition.h:36
Definition: definition.h:37
Definition: definition.h:39
Type
We are using these enums to identify type type of and instance or definition during traversal...
Definition: definition.h:20
Definition: definition.h:43
Definition: definition.h:38
Definition: definition.h:27
Definition: definition.h:26
Definition: definition.h:32
Definition: definition.h:42
int get_position_in_line()
Get the position of the in declaration in the corresponding line In other words the column in the lin...
Definition: definition.cpp:61