Documentation

DescriptorAwareCompilerContext extends CompilerContext
in package

FinalYes

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.

Table of Contents

Properties

$versionDescriptor  : VersionDescriptor

Methods

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

Properties

Methods

getLoggerInformation()

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

        
On this page

Search results