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

Method getDataType

src/Design/DesignComponent.cpp:108–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108const DataType* DesignComponent::getDataType(std::string_view name) const {
109 DataTypeMap::const_iterator itr = m_dataTypes.find(name);
110 if (itr == m_dataTypes.end()) {
111 const DesignComponent* parent = (const DesignComponent*)getParentScope();
112 if (parent) {
113 return parent->getDataType(name);
114 } else
115 return nullptr;
116 } else {
117 return (*itr).second;
118 }
119}
120
121void DesignComponent::insertUsedDataType(std::string_view dataTypeName,
122 DataType* dataType) {

Callers 15

bindSubRoutineCall_Method · 0.45
bindTasks_Method · 0.45
bindTypedefs_Method · 0.45
bindTypedefsPostElab_Method · 0.45
bindDataType_Method · 0.45
bindVariable_Method · 0.45
locateVariable_Method · 0.45
bindStructInPackageFunction · 0.45
bindPortType_Method · 0.45
makeVar_Method · 0.45
compileVariableMethod · 0.45

Calls

no outgoing calls

Tested by 3

bindSubRoutineCall_Method · 0.36
bindTasks_Method · 0.36