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

Method populateNode

kdevplatform/language/classmodel/classmodelnode.cpp:89–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void EnumNode::populateNode()
90{
91 DUChainReadLocker readLock(DUChain::lock());
92
93 Declaration* decl = declaration();
94
95 if (decl->internalContext()) {
96 const auto localDeclarations = decl->internalContext()->localDeclarations();
97 for (Declaration* enumDecl : localDeclarations) {
98 addNode(new EnumNode(enumDecl, m_model));
99 }
100 }
101}
102
103//////////////////////////////////////////////////////////////////////////////
104//////////////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 12

parentFunction · 0.85
localDeclarationsMethod · 0.80
registerForChangesMethod · 0.80
internalContextMethod · 0.45
featuresMethod · 0.45
urlMethod · 0.45
declarationMethod · 0.45
contextMethod · 0.45
topContextMethod · 0.45
typeMethod · 0.45
ownerMethod · 0.45

Tested by

no test coverage detected