1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 19:03:16 +02:00

demoing other error levels than warn/error; rename line and file fields in errPos

This commit is contained in:
Ben Burdette 2020-04-17 15:50:46 -06:00
parent 3d5b1032a1
commit 4697552948
4 changed files with 103 additions and 31 deletions

View file

@ -22,16 +22,16 @@ typedef enum {
struct ErrPos
{
int lineNumber;
int line;
int column;
string nixFile;
string file;
template <class P>
ErrPos& operator=(const P &pos)
{
lineNumber = pos.line;
line = pos.line;
column = pos.column;
nixFile = pos.file;
file = pos.file;
return *this;
}