MediaWiki  1.29.1
DeprecatedInterfaceFinder Class Reference

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

Inheritance diagram for DeprecatedInterfaceFinder:
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. More...
 
- Public Member Functions inherited from FileAwareNodeVisitor
 getCurrentFile ()
 
 setCurrentFile ( $filename)
 

Private Attributes

 $currentClass = null
 
 $foundNodes = []
 

Detailed Description

A PHPParser node visitor that finds deprecated functions and methods.

Definition at line 52 of file findDeprecated.php.

Member Function Documentation

◆ enterNode()

DeprecatedInterfaceFinder::enterNode ( PhpParser\Node  $node)

Reimplemented from FileAwareNodeVisitor.

Definition at line 88 of file findDeprecated.php.

References $matches, $name, and isHardDeprecated().

◆ getFoundNodes()

DeprecatedInterfaceFinder::getFoundNodes ( )

Definition at line 58 of file findDeprecated.php.

References $foundNodes, and as.

◆ 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.

Definition at line 73 of file findDeprecated.php.

References as.

Referenced by enterNode().

Member Data Documentation

◆ $currentClass

DeprecatedInterfaceFinder::$currentClass = null
private

Definition at line 54 of file findDeprecated.php.

◆ $foundNodes

DeprecatedInterfaceFinder::$foundNodes = []
private

Definition at line 56 of file findDeprecated.php.

Referenced by getFoundNodes().


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