D6643: Add return typehint support for PHP language
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.
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.
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.
R52 KDevelop: PHP Support
To: mtijink, #kdevelop
Cc: kdevelop-devel, #kdevelop, geetamc, Pilzschaf, akshaydeo, surgenight, arrowdodger
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the KDevelop-devel