mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
cleaner approach for localizing errors associated with duplicated ASTs: virtualize GetLocationInfo
This commit is contained in:
parent
c0a5328f8e
commit
eb1848c547
11 changed files with 37 additions and 33 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue