PDepend\Source\AST\ASTNode::getParentsOfType PHP Method

getParentsOfType() public method

Traverses up the node tree and finds all parent nodes that are instances of $parentType.
public getParentsOfType ( string $parentType ) : PDepend\Source\AST\ASTNode[]
$parentType string
return PDepend\Source\AST\ASTNode[]
    public function getParentsOfType($parentType);