D6316: Add codecompletion from embedded structs
Mikhail Ivchenko
noreply at phabricator.kde.org
Sun Jun 25 19:21:17 UTC 2017
ematirov added a comment.
If I do that inside
if(add)
{
decl->addBaseClass(base);
}
block and retrieve internal context of base type by
baseClassType.constData()->declaration(topContext())->internalContext()
then it's nullptr.
Same goes for decl->internalContext() there.
After some lookup I found that there are 2 declarations added somehow with same qualifiedIdentifier.
Also, looks like it my added test visitTypeSpec is somehow called twice thus in first call declaration is present once and it doesn't contain internal context and in second call there is 2 declarations where first one still doesn't have internal context and second have one.
I'll look more into that tomorrow. Thank you for your advice!
REPOSITORY
R59 KDevelop Go
REVISION DETAIL
https://phabricator.kde.org/D6316
To: ematirov, apol, brauch
Cc: kdevelop-devel, geetamc, Pilzschaf, akshaydeo, surgenight, arrowdodger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20170625/b8b4a85d/attachment-0001.html>
More information about the KDevelop-devel
mailing list