diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2021-01-26 11:50:36 +0100 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2021-01-26 11:50:36 +0100 |
commit | 1954e5975846b3952ce1d2d6506e6d7134c89684 (patch) | |
tree | db386159cd317fce6f5f2d04fefd45b70244368f /ext/tokenizer/tokenizer.stub.php | |
parent | 4414fd93d06490e726dc04814ba412822170b712 (diff) | |
download | php-git-1954e5975846b3952ce1d2d6506e6d7134c89684.tar.gz |
Add support for generating class entries from stubs
Closes GH-6289
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
Diffstat (limited to 'ext/tokenizer/tokenizer.stub.php')
-rw-r--r-- | ext/tokenizer/tokenizer.stub.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/tokenizer/tokenizer.stub.php b/ext/tokenizer/tokenizer.stub.php index c329ef4932..8aa873e10f 100644 --- a/ext/tokenizer/tokenizer.stub.php +++ b/ext/tokenizer/tokenizer.stub.php @@ -1,6 +1,9 @@ <?php -/** @generate-function-entries */ +/** + * @generate-function-entries + * @generate-class-entries + */ function token_get_all(string $code, int $flags = 0): array {} @@ -8,6 +11,11 @@ function token_name(int $id): string {} class PhpToken implements Stringable { + public int $id; + public string $text; + public int $line; + public int $pos; + /** @return static[] */ public static function tokenize(string $code, int $flags = 0): array {} |