D6670: Allow non-scalar constants in PHP language support
Matthijs Tijink
noreply at phabricator.kde.org
Thu Jul 13 08:51:22 UTC 2017
mtijink created this revision.
mtijink added a project: KDevelop.
Restricted Application added a subscriber: kdevelop-devel.
REVISION SUMMARY
Newer PHP versions allow almost any expression in the definition of a constant, as long as it is actually constant. This is hard to test in the parser (and impossibly in the grammar definition) though, so this diff just allows any expression.
TEST PLAN
I edited some tests to make sure the new behaviour is allowed.
REPOSITORY
R52 KDevelop: PHP Support
REVISION DETAIL
https://phabricator.kde.org/D6670
AFFECTED FILES
duchain/builders/declarationbuilder.cpp
duchain/tests/duchain.cpp
parser/php.g
To: mtijink, #kdevelop
Cc: kdevelop-devel, #kdevelop, geetamc, Pilzschaf, akshaydeo, surgenight, arrowdodger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20170713/c0175104/attachment.html>
More information about the KDevelop-devel
mailing list