| 36 | void pop_stack(); |
| 37 | |
| 38 | class Error |
| 39 | { |
| 40 | public: |
| 41 | Error(Location loc, std::string errMsg) |
| 42 | : location(loc) |
| 43 | , message(std::move(errMsg)) {}; |
| 44 | Error(std::string errMsg) |
| 45 | : location({ -1, -1 }) |
| 46 | , message(std::move(errMsg)) {}; |
| 47 | std::string GetErrorMessage() const { return message; } |
| 48 | Location GetLocation() const { return location; } |
| 49 | |
| 50 | private: |
| 51 | Location location; |
| 52 | std::string message; |
| 53 | }; |
| 54 | |
| 55 | std::vector<JsonPair> parseStack; |
| 56 | std::vector<Error> errors; |
no outgoing calls
searching dependent graphs…