21 #ifndef BM_BM_SIM_SOURCE_INFO_H_
22 #define BM_BM_SIM_SOURCE_INFO_H_
34 SourceInfo(std::string filename,
unsigned int line,
unsigned int column,
35 std::string source_fragment)
36 : filename(filename), line(line), column(column),
37 source_fragment(source_fragment) {
41 std::string get_filename()
const {
return filename; }
42 unsigned int get_line()
const {
return line; }
43 unsigned int get_column()
const {
return column; }
44 std::string get_source_fragment()
const {
return source_fragment; }
45 std::string to_string()
const {
return string_representation; }
51 std::string source_fragment;
52 std::string string_representation;
54 void init_to_string();
59 #endif // BM_BM_SIM_SOURCE_INFO_H_