Skip to content

Commit

Permalink
nixd/Expr: make #includes clear for traverseExpr
Browse files Browse the repository at this point in the history
  • Loading branch information
inclyc committed Jul 30, 2023
1 parent 00d67dc commit 71833c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixd/include/nixd/Expr/Expr.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ template <class Derived> struct RecursiveASTVisitor {
if (auto CE = dynamic_cast<const nix::EXPR *>(E)) { \
return getDerived().traverse##EXPR(CE); \
}
#include "Nodes.inc"
#undef NIX_EXPR
if (const auto *CE = dynamic_cast<const nixd::nodes::ExprError *>(E)) {
return getDerived().traverseExprError(CE);
}
#include "Nodes.inc"
assert(false && "We are missing some nix AST Nodes!");
return true;
#undef NIX_EXPR
}
bool traverseExprError(const nixd::nodes::ExprError *);
}; // namespace nixd
Expand Down

0 comments on commit 71833c1

Please sign in to comment.