DebugTrace

This commit is contained in:
Ben Burdette
2021-12-23 13:36:39 -07:00
parent deb1fd66e8
commit e5eebda194
5 changed files with 29 additions and 18 deletions
+7 -1
View File
@@ -74,6 +74,12 @@ struct RegexCache;
std::shared_ptr<RegexCache> makeRegexCache();
struct DebugTrace {
std::optional<ErrPos> pos;
Expr &expr;
hintformat hint;
};
class EvalState
{
@@ -109,7 +115,7 @@ public:
RootValue vCallFlake = nullptr;
RootValue vImportedDrvToDerivation = nullptr;
std::list<Trace> debugTraces;
std::list<DebugTrace> debugTraces;
private:
SrcToStore srcToStore;