Skip to content

Compiler

  • Full name: \Qubus\View\Compiler
  • This class is marked as final and can't be subclassed
  • This class is a Final class

Properties

result

private string $result

module

private \Qubus\View\Module $module

line

private int $line

trace

private array $trace

Methods

__construct

public __construct(\Qubus\View\Module $module): mixed

Parameters:

Parameter Type Description
$module \Qubus\View\Module

write

private write(mixed $string): \Qubus\View\Compiler

Parameters:

Parameter Type Description
$string mixed

raw

public raw(mixed $raw, mixed $indent): \Qubus\View\Compiler

Parameters:

Parameter Type Description
$raw mixed
$indent mixed

repr

public repr(mixed $repr, int $indent): void

Parameters:

Parameter Type Description
$repr mixed
$indent int

compile

public compile(): string

pushContext

public pushContext(mixed $name, mixed $indent): \Qubus\View\Compiler

Parameters:

Parameter Type Description
$name mixed
$indent mixed

popContext

public popContext(mixed $name, mixed $indent): \Qubus\View\Compiler

Parameters:

Parameter Type Description
$name mixed
$indent mixed

addTraceInfo

public addTraceInfo(\Qubus\View\BaseNode $node, int $indent, bool $line = true): void

Parameters:

Parameter Type Description
$node \Qubus\View\BaseNode
$indent int
$line bool

getTraceInfo

public getTraceInfo(bool $export = false): array|string|null

Parameters:

Parameter Type Description
$export bool


Automatically generated on 2025-10-13