Re: [RFC] Constructor Property Promotion
| From: | Markus Fischer | Date: | Thu, 02 Apr 2020 13:45:32 +0000 |
| Subject: | Re: [RFC] Constructor Property Promotion | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-109514@lists.php.net to get a copy of this message | ||
Him
On 02.04.20 12:07, Nikita Popov wrote:
Reflection will see the state after desugaring. That is, it just sees normal properties and normal constructor args. I've made this more explicit in the RFC now: https://wiki.php.net/rfc/constructor_promotion#reflectionThanks! Another one, also related a bit to your PHP-Parser (?): will the tokenization process "see" the code before desugaring? I'm wondering how automated translation tool can detect that a certain code is not "sugared" and promote this? thanks! - Markus