Commit ad827b58 authored by Sven Brauch's avatar Sven Brauch
Browse files

document declaration: use DUChainUtils to get the arguments context

This works for Python as well, then.
BUG:330725
parent 5de77e13
......@@ -19,6 +19,7 @@
#include "codedescription.h"
#include "util/debug.h"
#include <language/duchain/duchainutils.h>
#include <language/duchain/duchainlock.h>
#include <language/duchain/duchain.h>
#include <language/duchain/declaration.h>
......@@ -105,9 +106,9 @@ FunctionDescription::FunctionDescription(const DeclarationPointer& declaration)
DUContext* context = declaration->internalContext();
DUChainPointer<FunctionDeclaration> function = declaration.dynamicCast<FunctionDeclaration>();
if (function && function->internalFunctionContext())
if (function)
{
context = function->internalFunctionContext();
context = DUChainUtils::getArgumentContext(declaration.data());
}
DUChainPointer<ClassFunctionDeclaration> method = declaration.dynamicCast<ClassFunctionDeclaration>();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment