D6316: Add codecompletion from embedded structs

Mikhail Ivchenko noreply at phabricator.kde.org
Mon Jun 26 13:42:40 UTC 2017


ematirov added a comment.


  Yeah, looks like there is problem with reusing but not because of 2 runs - visitMethodDeclaration opens new declaration for type :-/
  See code and resulting DU-Chain: https://paste.kde.org/pmjuqk7ld (declarations on lines 14 and 15)
  I tried to:
  
  1. Assign internal context correctly;
  2. Reuse declaration inside method declaration;
  3. Add contexts of embedded structs as imported parent context.
  
  but now have some problems with such types as: `type mytype int;` (some existed tests falls).  Currently I'm looking what caused it and how to fix it.

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/20170626/530b636b/attachment.html>


More information about the KDevelop-devel mailing list