Add return typehint support for PHP language

Authored by mtijink on Jul 12 2017, 9:22 PM.

Description

Add return typehint support for PHP language

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.

Reviewers: KDevelop, pprkut, zhigalin

Subscribers: zhigalin, kdevelop-devel, KDevelop

Tags: KDevelop

Differential Revision: https://phabricator.kde.org/D6643

Details

Committed
zhigalinJul 12 2017, 9:22 PM
Differential Revision
D6643: Add return typehint support for PHP language
Parents
R52:7a6c82990908: Add more typehints to arguments in PHP
Branches
Unknown
Tags
Unknown