mirror of
https://github.com/NixOS/nix
synced 2025-06-25 23:11:16 +02:00
print LOC for stdin, string args
This commit is contained in:
parent
85ce455b85
commit
6a420d672c
6 changed files with 97 additions and 36 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue