nixd
|
#include <ParentMap.h>
Public Member Functions | |
void | runOnAST (const Node &Root) |
const Node * | query (const Node &N) const |
const Node * | upExpr (const Node &N) const |
Search up until the node becomes a concrete expression. a ^<--— ID -> ExprVar. | |
const Node * | upTo (const Node &N, Node::NodeKind Kind) const |
Search up until some kind of node is found. | |
bool | isRoot (const Node &N) const |
Static Public Member Functions | |
static bool | isRoot (const Node *Up, const Node &N) |
Definition at line 15 of file libnixf/include/nixf/Sema/ParentMap.h.
|
nodiscard |
Definition at line 46 of file libnixf/src/Sema/ParentMap.cpp.
Definition at line 42 of file libnixf/src/Sema/ParentMap.cpp.
Referenced by nixd::upEnv(), upExpr(), and upTo().
Definition at line 13 of file libnixf/src/Sema/ParentMap.cpp.
Referenced by nixd::idioms::mkVarSelector(), nixd::upEnv(), upExpr(), and upTo().
void ParentMapAnalysis::runOnAST | ( | const Node & | Root | ) |
Definition at line 37 of file libnixf/src/Sema/ParentMap.cpp.
Search up until the node becomes a concrete expression. a ^<--— ID -> ExprVar.
Definition at line 17 of file libnixf/src/Sema/ParentMap.cpp.
References nixf::Expr::isExpr(), isRoot(), nixf::Node::kind(), query(), and upExpr().
Referenced by upExpr().
|
nodiscard |
Search up until some kind of node is found.
Definition at line 27 of file libnixf/src/Sema/ParentMap.cpp.
References isRoot(), nixf::Node::kind(), query(), and upTo().
Referenced by nixd::findAttrPath(), and upTo().