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

Function getOwnerOfContext

plugins/qmljs/duchain/helper.cpp:238–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238Declaration* getOwnerOfContext(const DUContext* context)
239{
240 if (context->owner()) {
241 return context->owner();
242 } else if (context->type() == DUContext::Function && context->parentContext()) {
243 return context->parentContext()->owner();
244 } else {
245 return nullptr;
246 }
247}
248
249RangeInRevision emptyRangeOnLine(const AST::SourceLocation& location)
250{

Callers 4

visitMethod · 0.85
visitMethod · 0.85
encounterParentMethod · 0.85

Calls 3

ownerMethod · 0.45
typeMethod · 0.45
parentContextMethod · 0.45

Tested by

no test coverage detected