nixd
Loading...
Searching...
No Matches
Definition.h
Go to the documentation of this file.
1#pragma once
2
5
6#include <llvm/Support/Error.h>
7
8namespace nixd {
9
10struct CannotFindVarException : std::exception {
11 [[nodiscard]] const char *what() const noexcept override {
12 return "cannot find variable on given node";
13 }
14};
15
16/// \brief Heuristically find definition on some node
18 const nixf::ParentMapAnalysis &PMA,
20
21} // namespace nixd
Lookup variable names, from it's parent scope.
Represents a definition.
ParentMap analysis.
bool fromJSON(const llvm::json::Value &Params, Configuration::Diagnostic &R, llvm::json::Path P)
const nixf::Definition & findDefinition(const nixf::Node &N, const nixf::ParentMapAnalysis &PMA, const nixf::VariableLookupAnalysis &VLA)
Heuristically find definition on some node.
const char * what() const noexcept override
Definition Definition.h:11