| 99 | }; |
| 100 | |
| 101 | struct Parse_Location { |
| 102 | Parse_Location(std::string t_fname="", const int t_start_line=0, const int t_start_col=0, |
| 103 | const int t_end_line=0, const int t_end_col=0) |
| 104 | : start(t_start_line, t_start_col), |
| 105 | end(t_end_line, t_end_col), |
| 106 | filename(std::make_shared<std::string>(std::move(t_fname))) |
| 107 | { |
| 108 | } |
| 109 | |
| 110 | Parse_Location(std::shared_ptr<std::string> t_fname, const int t_start_line=0, const int t_start_col=0, |
| 111 | const int t_end_line=0, const int t_end_col=0) |
| 112 | : start(t_start_line, t_start_col), |
| 113 | end(t_end_line, t_end_col), |
| 114 | filename(std::move(t_fname)) |
| 115 | { |
| 116 | } |
| 117 | |
| 118 | |
| 119 | |
| 120 | File_Position start; |
| 121 | File_Position end; |
| 122 | std::shared_ptr<std::string> filename; |
| 123 | }; |
| 124 | |
| 125 | |
| 126 | /// \brief Typedef for pointers to AST_Node objects. Used in building of the AST_Node tree |
no outgoing calls
no test coverage detected