nixd
Loading...
Searching...
No Matches
nixd
lib
Controller
Definition.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
nixf/Sema/ParentMap.h
"
4
#include "
nixf/Sema/VariableLookup.h
"
5
6
#include <llvm/Support/Error.h>
7
8
namespace
nixd
{
9
10
struct
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
17
const
nixf::Definition
&
findDefinition
(
const
nixf::Node
&N,
18
const
nixf::ParentMapAnalysis
&PMA,
19
const
nixf::VariableLookupAnalysis
&VLA);
20
21
}
// namespace nixd
VariableLookup.h
Lookup variable names, from it's parent scope.
nixf::Definition
Represents a definition.
Definition
VariableLookup.h:26
nixf::Node
Definition
Basic.h:12
nixf::ParentMapAnalysis
Definition
libnixf/include/nixf/Sema/ParentMap.h:15
nixf::VariableLookupAnalysis
Definition
VariableLookup.h:112
ParentMap.h
ParentMap analysis.
nixd
Definition
CommandLine/Configuration.h:9
nixd::findDefinition
const nixf::Definition & findDefinition(const nixf::Node &N, const nixf::ParentMapAnalysis &PMA, const nixf::VariableLookupAnalysis &VLA)
Heuristically find definition on some node.
Definition
Definition.cpp:345
nixd::CannotFindVarException
Definition
Definition.h:10
nixd::CannotFindVarException::what
const char * what() const noexcept override
Definition
Definition.h:11
Generated by
1.12.0