aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/nixexpr.hh
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2020-05-20 22:18:26 -0600
committerBen Burdette <bburdette@gmail.com>2020-05-20 22:18:26 -0600
commit6a420d672ca690ef4235ac7a5833c1789a7d8b10 (patch)
treee9adbc63c159896bbbdc332800986b37c7d04e9b /src/libexpr/nixexpr.hh
parent85ce455b854761b1fd4985ed21ef5a8881eb3c11 (diff)
print LOC for stdin, string args
Diffstat (limited to 'src/libexpr/nixexpr.hh')
-rw-r--r--src/libexpr/nixexpr.hh7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libexpr/nixexpr.hh b/src/libexpr/nixexpr.hh
index 47d0e85ec..5a98b9149 100644
--- a/src/libexpr/nixexpr.hh
+++ b/src/libexpr/nixexpr.hh
@@ -24,11 +24,12 @@ MakeError(RestrictedPathError, Error);
struct Pos
{
+ FileOrigin origin;
Symbol file;
unsigned int line, column;
- Pos() : line(0), column(0) { };
- Pos(const Symbol & file, unsigned int line, unsigned int column)
- : file(file), line(line), column(column) { };
+ Pos() : origin(foString), line(0), column(0) { };
+ Pos(FileOrigin origin, const Symbol & file, unsigned int line, unsigned int column)
+ : origin(origin), file(file), line(line), column(column) { };
operator bool() const
{
return line != 0;