| Methods | ||
|---|---|---|
public
|
__construct(Environment $env)
|
# |
public
|
getEnvironment(): Environment
|
# |
public
|
getSource(): string
|
# |
public
|
reset(int $indentation = 0): $this
|
# |
public
|
compile(Node $node, int $indentation = 0): $this
|
# |
public
|
subcompile(Node $node, bool $raw = true): $this
|
# |
public
|
raw(string $string): $this
|
# |
public
|
write(...$strings): $this
|
# |
public
|
string(string $value): $this
|
# |
public
|
repr($value): $this
|
# |
public
|
addDebugInfo(Node $node): $this
|
# |
public
|
getDebugInfo(): array
|
# |
public
|
indent(int $step = 1): $this
|
# |
public
|
outdent(int $step = 1): $this
|
# |
public
|
getVarName(): string
|
# |
| Properties | |||
|---|---|---|---|
private
|
|
$lastLine
|
# |
private
|
|
$source
|
# |
private
|
|
$indentation
|
# |
private
|
|
$env
|
# |
private
|
|
$debugInfo = []
|
# |
private
|
|
$sourceOffset
|
# |
private
|
|
$sourceLine
|
# |
private
|
|
$varNameSalt = 0
|
# |