cleaner approach for localizing errors associated with duplicated ASTs: virtualize GetLocationInfo

This commit is contained in:
Vern Paxson 2021-01-07 15:14:22 -08:00
parent c0a5328f8e
commit eb1848c547
11 changed files with 37 additions and 33 deletions

View file

@ -110,7 +110,7 @@ public:
void AddLocation(ODesc* d) const;
// Get location info for debugging.
const detail::Location* GetLocationInfo() const
virtual const detail::Location* GetLocationInfo() const
{ return location ? location : &detail::no_location; }
virtual bool SetLocationInfo(const detail::Location* loc)