MCPcopy Create free account
hub / github.com/chipsalliance/Surelog / getVariable

Method getVariable

src/Design/Scope.cpp:35–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35Variable* Scope::getVariable(std::string_view name) {
36 VariableMap::iterator itr = m_variables.find(name);
37 if (itr == m_variables.end()) {
38 if (m_parentScope) {
39 Variable* var = m_parentScope->getVariable(name);
40 if (var) return var;
41 }
42 return nullptr;
43 } else {
44 return (*itr).second;
45 }
46}
47
48DataType* Scope::getUsedDataType(std::string_view name) {
49 DataTypeMap::iterator itr = m_usedDataTypes.find(name);

Callers 2

compileScopeVariableMethod · 0.45
bindVariable_Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected