Page MenuHomeWickedGov Phorge

AfterAnalyzeFileCapability.php
No OneTemporary

Size
884 B
Referenced Files
None
Subscribers
None

AfterAnalyzeFileCapability.php

<?php
declare(strict_types=1);
namespace Phan\PluginV3;
use ast\Node;
use Phan\CodeBase;
use Phan\Language\Context;
/**
* AfterAnalyzeFileCapability is used when you want to perform checks after analyzing a file
* NOTE: This does not run on empty files.
*/
interface AfterAnalyzeFileCapability
{
/**
* This method is called after Phan analyzes a file.
*
* @param CodeBase $code_base
* The code base in which the node exists
*
* @param Context $context
* A context with the file name for $file_contents and the scope after analyzing $node.
*
* @param string $file_contents the unmodified file contents
* @param Node $node the node parsed from $file_contents
*/
public function afterAnalyzeFile(
CodeBase $code_base,
Context $context,
string $file_contents,
Node $node
): void;
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Nov 21, 23:29 (1 d, 21 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b9/45/039274ccb0726ae6a7188d403b6f
Default Alt Text
AfterAnalyzeFileCapability.php (884 B)

Event Timeline