Guides

CompilerContext
in package
implements CompilerContextInterface

Context class used in compiler passes to store the state of the nodes.

The Compiler is making changes to the nodes in a DocumentNode as the nodes are immutable cannot do this directly. This class helps to modify the nodes in the DocumentNode by creating a shadow tree.

The class is final and should not be extended, if you need to provide more information to the compiler pass you can use the CompilerContextInterface and decorate this class.

Tags
final

Table of Contents

Interfaces

CompilerContextInterface

Properties

$projectNode  : ProjectNode
$shadowTree  : TreeNode<string|int, Node>

Methods

__construct()  : mixed
getDocumentNode()  : DocumentNode
getLoggerInformation()  : array<string, string>
getProjectNode()  : ProjectNode
getShadowTree()  : TreeNode<string|int, Node>
withDocumentShadowTree()  : static
withShadowTree()  : static

Properties

Methods

getLoggerInformation()

public getLoggerInformation() : array<string, string>
Return values
array<string, string>

        
On this page

Search results