aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-dataloader/ParseState.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvic-dataloader/ParseState.hpp')
-rw-r--r--src/openvic-dataloader/ParseState.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/openvic-dataloader/ParseState.hpp b/src/openvic-dataloader/ParseState.hpp
index 259f2a5..221a269 100644
--- a/src/openvic-dataloader/ParseState.hpp
+++ b/src/openvic-dataloader/ParseState.hpp
@@ -61,6 +61,10 @@ namespace ovdl {
return _logger;
}
+ void update_logger_file() {
+ _logger.set_file(this->ast().file());
+ }
+
private:
ast_type _ast;
diagnostic_logger_type _logger;
@@ -102,6 +106,10 @@ namespace ovdl {
return _logger;
}
+ void update_logger_file() {
+ _logger.set_file(this->file());
+ }
+
private:
file_type _file;
diagnostic_logger_type _logger;