switch to structs, which don't need public:

This commit is contained in:
Ben Burdette 2020-04-16 09:55:38 -06:00
parent 057e5b6b2e
commit 96262e744e

View file

@ -17,9 +17,8 @@ typedef enum {
elError elError
} ErrLevel; } ErrLevel;
class ErrPos struct ErrPos
{ {
public:
int lineNumber; int lineNumber;
int column; int column;
string nixFile; string nixFile;
@ -40,9 +39,8 @@ public:
} }
}; };
class NixCode struct NixCode
{ {
public:
ErrPos errPos; ErrPos errPos;
std::optional<string> prevLineOfCode; std::optional<string> prevLineOfCode;
string errLineOfCode; string errLineOfCode;
@ -54,9 +52,8 @@ public:
// are always in yellow. // are always in yellow.
template <class T> template <class T>
class yellowify struct yellowify
{ {
public:
yellowify(T &s) : value(s) {} yellowify(T &s) : value(s) {}
T &value; T &value;
}; };
@ -104,9 +101,8 @@ inline hintformat hintfmt(const std::string & fs, const Args & ... args)
// ------------------------------------------------- // -------------------------------------------------
// ErrorInfo. // ErrorInfo.
class ErrorInfo struct ErrorInfo
{ {
public:
ErrLevel level; ErrLevel level;
string name; string name;
string description; string description;
@ -114,8 +110,6 @@ public:
std::optional<NixCode> nixCode; std::optional<NixCode> nixCode;
static std::optional<string> programName; static std::optional<string> programName;
private:
}; };
// -------------------------------------------------------- // --------------------------------------------------------