MediaWiki master
DeprecatedInterfaceFinder Class Reference

A PHPParser node visitor that finds deprecated functions and methods. More...

Inherits FileAwareNodeVisitor.

Collaboration diagram for DeprecatedInterfaceFinder:

Public Member Functions

 enterNode (PhpParser\Node $node)
 
 getFoundNodes ()
 
 isHardDeprecated (PhpParser\Node $node)
 Check whether a function or method includes a call to wfDeprecated(), indicating that it is a hard-deprecated interface.
 
- Public Member Functions inherited from FileAwareNodeVisitor
 getCurrentFile ()
 
 setCurrentFile ( $filename)
 

Detailed Description

A PHPParser node visitor that finds deprecated functions and methods.

Definition at line 56 of file findDeprecated.php.

Member Function Documentation

◆ enterNode()

DeprecatedInterfaceFinder::enterNode ( PhpParser\Node $node)

Reimplemented from FileAwareNodeVisitor.

Definition at line 96 of file findDeprecated.php.

References $matches, and isHardDeprecated().

◆ getFoundNodes()

DeprecatedInterfaceFinder::getFoundNodes ( )

Definition at line 64 of file findDeprecated.php.

◆ isHardDeprecated()

DeprecatedInterfaceFinder::isHardDeprecated ( PhpParser\Node $node)

Check whether a function or method includes a call to wfDeprecated(), indicating that it is a hard-deprecated interface.

Parameters
PhpParser\\Node$node
Returns
bool

Definition at line 81 of file findDeprecated.php.

Referenced by enterNode().


The documentation for this class was generated from the following file: