blob: 9fe5e9395d3d3ff6f3e8283e2929c3d01c0a1aa5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "DiagnosticLogger.hpp"
using namespace ovdl;
DiagnosticLogger::operator bool() const {
return !_errored;
}
bool DiagnosticLogger::errored() const { return _errored; }
bool DiagnosticLogger::warned() const { return _warned; }
NodeLocation DiagnosticLogger::location_of(const error::Error* error) const {
auto result = _map.lookup(error);
return result ? *result : NodeLocation {};
}
|