MCPcopy Create free account
hub / github.com/KDE/kdevelop / exchangeTypes

Method exchangeTypes

kdevplatform/language/duchain/types/unsuretype.cpp:95–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void UnsureType::exchangeTypes(KDevelop::TypeExchanger* exchanger)
96{
97 for (uint a = 0; a < d_func()->m_typesSize(); ++a) {
98 AbstractType::Ptr from = d_func()->m_types()[a].abstractType();
99 AbstractType::Ptr exchanged = exchanger->exchange(from);
100 if (exchanged != from)
101 d_func_dynamic()->m_typesList()[a] = exchanged->indexed();
102 }
103
104 KDevelop::AbstractType::exchangeTypes(exchanger);
105}
106
107void UnsureType::addType(const KDevelop::IndexedType& type)
108{

Callers

nothing calls this directly

Calls 3

abstractTypeMethod · 0.45
exchangeMethod · 0.45
indexedMethod · 0.45

Tested by

no test coverage detected