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

#include <json-parsing.h>

Inheritance diagram for json::simple_location_map:
Collaboration diagram for json::simple_location_map:

Public Member Functions

void record_range_for_value (json::value *jv, const range &r) final override
const json::location_map::rangeget_range_for_value (const json::value &jv) const
virtual void on_finished_parsing ()

Private Attributes

std::map< const json::value *, rangem_map_jv_to_range

Detailed Description

Implementation of json::location_map that records ranges to a std::map.   

Member Function Documentation

◆ get_range_for_value()

const json::location_map::range & json::simple_location_map::get_range_for_value ( const json::value & jv) const
inline

References gcc_assert, and m_map_jv_to_range.

Referenced by emit_json_diagnostic().

◆ on_finished_parsing()

virtual void json::location_map::on_finished_parsing ( )
inlinevirtualinherited

◆ record_range_for_value()

void json::simple_location_map::record_range_for_value ( json::value * jv,
const range & r )
inlinefinaloverridevirtual

Implements json::location_map.

References m_map_jv_to_range, and r.

Field Documentation

◆ m_map_jv_to_range

std::map<const json::value *, range> json::simple_location_map::m_map_jv_to_range
private

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