diff options
Diffstat (limited to 'src/span.cpp')
-rw-r--r-- | src/span.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/span.cpp b/src/span.cpp index 5216976d..763bb748 100644 --- a/src/span.cpp +++ b/src/span.cpp @@ -9,6 +9,7 @@ #include <iostream> #include <span.hpp> #include <parse/lex.hpp> +#include <common.hpp> Span::Span(const Span& x): filename(x.filename), @@ -26,6 +27,14 @@ Span::Span(const Position& pos): end_ofs(pos.ofs) { } +Span::Span(): + filename("")/*, + start_line(0), start_ofs(0), + end_line(0), end_ofs(0) // */ +{ + //DEBUG("Empty span"); + //filename = FMT(":" << __builtin_return_address(0)); +} void Span::bug(::std::function<void(::std::ostream&)> msg) const { |