#include <ComponentLookup.h>
|
static constexpr const char * | name = "component-lookup" |
|
Definition at line 78 of file ComponentLookup.h.
◆ ComponentLookupAnalysis()
souffle::ast::analysis::ComponentLookupAnalysis::ComponentLookupAnalysis |
( |
| ) |
|
|
inline |
◆ getComponent()
const Component * souffle::ast::analysis::ComponentLookupAnalysis::getComponent |
( |
const Component * |
scope, |
|
|
const std::string & |
name, |
|
|
const TypeBinding & |
activeBinding |
|
) |
| const |
Performs a lookup operation for a component with the given name within the addressed scope.
- Parameters
-
scope | the component scope to lookup in (null for global scope) |
name | the name of the component to be looking for |
- Returns
- a pointer to the obtained component or null if there is no such component.
Definition at line 48 of file ComponentLookup.cpp.
54 for (
const Component* cur : searchScope->getComponents()) {
55 if (cur->getComponentType()->getName() ==
toString(boundName)) {
61 searchScope = found->second;
63 searchScope =
nullptr;
70 if (cur->getComponentType()->getName() ==
toString(boundName)) {
◆ run()
void souffle::ast::analysis::ComponentLookupAnalysis::run |
( |
const TranslationUnit & |
| ) |
|
|
overridevirtual |
◆ enclosingComponent
std::map<const Component*, const Component*> souffle::ast::analysis::ComponentLookupAnalysis::enclosingComponent |
|
private |
◆ globalScopeComponents
std::set<const Component*> souffle::ast::analysis::ComponentLookupAnalysis::globalScopeComponents |
|
private |
◆ name
constexpr const char* souffle::ast::analysis::ComponentLookupAnalysis::name = "component-lookup" |
|
staticconstexpr |
◆ nestedComponents
std::map<const Component*, std::set<const Component*> > souffle::ast::analysis::ComponentLookupAnalysis::nestedComponents |
|
private |
The documentation for this class was generated from the following files: