D7791: Open context for lambdas in ContextBuilder
Francis Herne
noreply at phabricator.kde.org
Tue Sep 12 23:55:44 UTC 2017
flherne created this revision.
Restricted Application added a subscriber: kdevelop-devel.
REVISION SUMMARY
AbstractUseBuilder::newUse() relies on currentContext() to be correct, so we need to open the contexts here and not only in DeclarationBuilder.
This caused uses of lambda parameters to be created in the parent context, which broke rainbow-highlighting.
TEST PLAN
Checked that they're in the right context now. Highlighting works.
REPOSITORY
R53 KDevelop: Python Support
REVISION DETAIL
https://phabricator.kde.org/D7791
AFFECTED FILES
duchain/contextbuilder.cpp
duchain/contextbuilder.h
To: flherne, brauch
Cc: kdevelop-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20170912/22a1d30c/attachment.html>
More information about the KDevelop-devel
mailing list