Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4093079
AFPSyntaxTree.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
626 B
Referenced Files
None
Subscribers
None
AFPSyntaxTree.php
View Options
<?php
namespace
MediaWiki\Extension\AbuseFilter\Parser
;
/**
* A class representing a whole AST generated by AFPTreeParser, holding AFPTreeNode's. This wrapper
* could be expanded in the future. For now, it's mostly useful for typehints, and to have an
* evalTree function in the evaluator.
*/
class
AFPSyntaxTree
{
/**
* @var AFPTreeNode|null
*/
private
$rootNode
;
/**
* @param AFPTreeNode|null $root
*/
public
function
__construct
(
?
AFPTreeNode
$root
=
null
)
{
$this
->
rootNode
=
$root
;
}
/**
* @return AFPTreeNode|null
*/
public
function
getRoot
():
?
AFPTreeNode
{
return
$this
->
rootNode
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 18 2026, 12:38 (4 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
cc/07/9857a5216f2a13290bae88057ca3
Default Alt Text
AFPSyntaxTree.php (626 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment