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

Method closeAndAssignType

plugins/qmljs/duchain/declarationbuilder.cpp:1326–1337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1324}
1325
1326void DeclarationBuilder::closeAndAssignType()
1327{
1328 closeType();
1329 Declaration* dec = currentDeclaration();
1330 Q_ASSERT(dec);
1331
1332 if (auto type = lastType()) {
1333 DUChainWriteLocker lock;
1334 dec->setType(type);
1335 }
1336 closeDeclaration();
1337}
1338
1339AbstractType::Ptr DeclarationBuilder::typeFromName(const QString& name)
1340{

Callers 1

createObjectMethod · 0.80

Calls 4

currentDeclarationFunction · 0.85
lastTypeFunction · 0.85
closeDeclarationFunction · 0.85
setTypeMethod · 0.45

Tested by

no test coverage detected