GCC Middle and Back End API Reference
json::error Class Reference

#include <json-parsing.h>

Collaboration diagram for json::error:

Public Member Functions

 error (const location_map::range &r, char *msg)
 
 ~error ()
 
const location_map::rangeget_range () const
 
const char * get_msg () const
 

Private Attributes

location_map::range m_range
 
char * m_msg
 

Detailed Description

Class for recording an error within a JSON file.   

Constructor & Destructor Documentation

◆ error()

json::error::error ( const location_map::range & r,
char * msg )
inline

◆ ~error()

json::error::~error ( )
inline

References free(), and m_msg.

Member Function Documentation

◆ get_msg()

const char * json::error::get_msg ( ) const
inline

References m_msg.

◆ get_range()

const location_map::range & json::error::get_range ( ) const
inline

References m_range.

Field Documentation

◆ m_msg

char* json::error::m_msg
private

Referenced by get_msg(), and ~error().

◆ m_range

location_map::range json::error::m_range
private

Referenced by get_range().


The documentation for this class was generated from the following file: