Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7409446
PluginAwarePreAnalysisVisitor.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PluginAwarePreAnalysisVisitor.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Phan\PluginV3
;
/**
* For plugins which define their own pre-order analysis behaviors in the analysis phase.
* Called on a node before PluginAwarePreAnalysisVisitor implementations.
*
* Public APIs for use by plugins:
*
* - visit<VisitSuffix>(...) (Override these methods)
* - emitPluginIssue(CodeBase $code_base, Config $config, ...) (Call these methods)
* - emit(...)
* - Public methods from Phan\AST\AnalysisVisitor
*
* NOTE: Subclasses should not implement the visit() method unless they absolutely need to.
* (E.g. if the body would be empty, or if it could be replaced with a few methods such as visitFuncDecl, visitVar, etc. that are more specific)
*
* - Phan is able to figure out which methods a subclass implements, and only call the plugin's visitor for those types,
* but only when the plugin's visitor does not override the fallback visit() method.
*/
abstract
class
PluginAwarePreAnalysisVisitor
extends
PluginAwareBaseAnalysisVisitor
{
// Subclasses should declare protected $parent_node_list as an instance property if they need to know the list.
// @var list<Node> - Set after the constructor is called if an instance property with this name is declared
// protected $parent_node_list;
// Implementations should omit the constructor or call parent::__construct(CodeBase $code_base, Context $context)
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 21, 22:29 (1 d, 19 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5d/2c/8e3c156e289c666358a11019c73a
Default Alt Text
PluginAwarePreAnalysisVisitor.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment