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

Function importDeclarationInContext

plugins/qmljs/duchain/helper.cpp:254–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254void importDeclarationInContext(DUContext* context, const DeclarationPointer& declaration)
255{
256 DUContext* importedContext = QmlJS::getInternalContext(declaration);
257
258 if (!importedContext || importedContext == context) {
259 return;
260 }
261
262 {
263 DUChainWriteLocker lock;
264 context->addImportedParentContext(importedContext);
265 }
266}
267
268void importObjectContext(DUContext* context, TopDUContext* topContext)
269{

Callers 3

visitMethod · 0.85
registerBaseClassesMethod · 0.85
importObjectContextFunction · 0.85

Calls 2

getInternalContextFunction · 0.85

Tested by

no test coverage detected