php-parser
php-parser copied to clipboard
AST of parent class
can we get the AST of parent class?
class Dummy extends BaseElement {/**/}
here we are able to get AST of Dummy but not the AST of parent class BaseElement.
any function in php-parser itself to get that? otherwise need to find the path in filesystem and do the same thing.
thanks in advance!
Hi @ervishal. This library does not provide search features but low-level language parsing. For now, you should parse the file that contains the parent class and traverse its AST to the needed node.