21#ifndef GCC_JSON_PARSING_H
22#define GCC_JSON_PARSING_H
84template <
typename ValueType,
typename ErrorType>
103 const char *utf8_buf,
Definition json-parsing.h:61
location_map::range m_range
Definition json-parsing.h:76
error(const location_map::range &r, char *msg)
Definition json-parsing.h:63
const char * get_msg() const
Definition json-parsing.h:73
char * m_msg
Definition json-parsing.h:77
const location_map::range & get_range() const
Definition json-parsing.h:72
~error()
Definition json-parsing.h:67
Definition json-parsing.h:35
virtual ~location_map()
Definition json-parsing.h:53
virtual void on_finished_parsing()
Definition json-parsing.h:55
virtual void record_range_for_value(json::value *jv, const range &r)=0
Definition json-parsing.h:27
parser_result_t parse_utf8_string(size_t length, const char *utf8_buf, bool allow_comments, location_map *out_loc_map)
Definition json-parsing.cc:1381
result< std::unique_ptr< value >, std::unique_ptr< error > > parser_result_t
Definition json-parsing.h:97
poly_int< N, C > r
Definition poly-int.h:774
static void const char * msg
Definition read-md.cc:204
Definition json-parsing.h:39
size_t m_unichar_idx
Definition json-parsing.h:40
int m_line
Definition json-parsing.h:41
int m_column
Definition json-parsing.h:42
Definition json-parsing.h:48
point m_start
Definition json-parsing.h:49
point m_end
Definition json-parsing.h:50
Definition json-parsing.h:86
ValueType m_val
Definition json-parsing.h:90
result(ErrorType err)
Definition json-parsing.h:88
result(ValueType val)
Definition json-parsing.h:87
ErrorType m_err
Definition json-parsing.h:91
Definition ira-emit.cc:158