[PHP-DEV] Re: [RFC] token_get_all() TOKEN_AS_OBJECT mode

2020-03-02 Thread Nikita Popov
On Thu, Feb 13, 2020 at 10:47 AM Nikita Popov wrote: > Hi internals, > > This has been discussed a while ago already, now as a proper proposal: > https://wiki.php.net/rfc/token_as_object > > tl;dr is that it allows you to get token_get_all() output as an array of > PhpToken objects. This reduces

Re: [PHP-DEV] Re: [RFC] token_get_all() TOKEN_AS_OBJECT mode

2020-02-25 Thread Nikita Popov
On Tue, Feb 25, 2020 at 5:59 PM Larry Garfield wrote: > On Tue, Feb 25, 2020, at 9:59 AM, Nikita Popov wrote: > > On Thu, Feb 13, 2020 at 10:47 AM Nikita Popov > wrote: > > > > > Hi internals, > > > > > > This has been discussed a while ago already, now as a proper proposal: > > >

Re: [PHP-DEV] Re: [RFC] token_get_all() TOKEN_AS_OBJECT mode

2020-02-25 Thread Nikita Popov
On Tue, Feb 25, 2020 at 7:16 PM Theodore Brown wrote: > On Tue, Feb 25, 2020 at 9:59 AM Nikita Popov wrote: > > > On Thu, Feb 13, 2020 at 10:47 AM Nikita Popov > wrote: > > > > > This has been discussed a while ago already, now as a proper proposal: > > >

Re: [PHP-DEV] Re: [RFC] token_get_all() TOKEN_AS_OBJECT mode

2020-02-25 Thread Theodore Brown
On Tue, Feb 25, 2020 at 9:59 AM Nikita Popov wrote: > On Thu, Feb 13, 2020 at 10:47 AM Nikita Popov wrote: > > > This has been discussed a while ago already, now as a proper proposal: > > https://wiki.php.net/rfc/token_as_object > > > > An open question is whether (at least to start with)

Re: [PHP-DEV] Re: [RFC] token_get_all() TOKEN_AS_OBJECT mode

2020-02-25 Thread Larry Garfield
On Tue, Feb 25, 2020, at 9:59 AM, Nikita Popov wrote: > On Thu, Feb 13, 2020 at 10:47 AM Nikita Popov wrote: > > > Hi internals, > > > > This has been discussed a while ago already, now as a proper proposal: > > https://wiki.php.net/rfc/token_as_object > > > > tl;dr is that it allows you to get

[PHP-DEV] Re: [RFC] token_get_all() TOKEN_AS_OBJECT mode

2020-02-25 Thread Nikita Popov
On Thu, Feb 13, 2020 at 10:47 AM Nikita Popov wrote: > Hi internals, > > This has been discussed a while ago already, now as a proper proposal: > https://wiki.php.net/rfc/token_as_object > > tl;dr is that it allows you to get token_get_all() output as an array of > PhpToken objects. This reduces