D6643: Add return typehint support for PHP language
Matthijs Tijink
noreply at phabricator.kde.org
Wed Jul 12 10:48:36 UTC 2017
mtijink created this revision.
mtijink added a project: KDevelop.
Restricted Application added a subscriber: kdevelop-devel.
REVISION SUMMARY
This diff adds support for php return typehints (e.g. `function foo(): string`) to the parser. Nothing is done yet to use this in the TypeBuilder, that will come later.
TEST PLAN
The newly added test checks if the return typehint is correctly tokenized. Parsing itself is not tested, but the old tests work (so no regressions) and opening files with return typehints now works without parse errors. Tests will be added after using the return typehints in the TypeBuilder.
REPOSITORY
R52 KDevelop: PHP Support
REVISION DETAIL
https://phabricator.kde.org/D6643
AFFECTED FILES
completion/context.cpp
parser/php.g
parser/phplexer.cpp
parser/test/lexertest.cpp
parser/test/lexertest.h
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/20170712/3b47a8cf/attachment.html>
More information about the KDevelop-devel
mailing list