8000 Add support for a custom node visitor to override the default by johnbillion · Pull Request #5 · php-stubs/generator · GitHub
[go: up one dir, main page]

Skip to content

Add support for a custom node visitor to override the default#5

Merged
szepeviktor merged 3 commits intophp-stubs:masterfrom
johnbillion:custom-visitor
Dec 2, 2021
Merged

Add support for a custom node visitor to override the default#5
szepeviktor merged 3 commits intophp-stubs:masterfrom
johnbillion:custom-visitor

Conversation

@johnbillion
Copy link
Contributor

This adds a --visitor=<file> flag which works much like the --finder=<file> flag and allows a custom node visitor instance to be provided. This allows for custom pre- or post-processing of nodes, in particular their docblock.

Enables php-stubs/wordpress-stubs#21

@szepeviktor
Copy link
Member

Thank you, John!
Have you seen the failing unit tests?

@szepeviktor
Copy link
Member

Zuper 🦸‍♂️

@szepeviktor szepeviktor merged commit 53c2cbb into php-stubs:master Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0