Jobbuddy
Chargement...
Recherche...
Aucune correspondance
Référence de la classe Compiler

Fonctions membres publiques

 __construct (private Environment $env,)
 getEnvironment ()
 getSource ()
 reset (int $indentation=0)
 compile (Node $node, int $indentation=0)
 subcompile (Node $node, bool $raw=true)
 raw (string $string)
 write (... $strings)
 string (string $value)
 repr ($value)
 addDebugInfo (Node $node)
 getDebugInfo ()
 indent (int $step=1)
 outdent (int $step=1)
 getVarName ()

Description détaillée

Documentation des fonctions membres

◆ addDebugInfo()

addDebugInfo ( Node $node)
Renvoie
$this

◆ compile()

compile ( Node $node,
int $indentation = 0 )
Renvoie
$this

◆ indent()

indent ( int $step = 1)
Renvoie
$this

◆ outdent()

outdent ( int $step = 1)
Renvoie
$this
Exceptions

LogicException When trying to outdent too much so the indentation would become negative

◆ raw()

raw ( string $string)

Adds a raw string to the compiled code.

Renvoie
$this

◆ repr()

repr ( $value)

Returns a PHP representation of a given value.

Renvoie
$this

◆ reset()

reset ( int $indentation = 0)
Renvoie
$this

◆ string()

string ( string $value)

Adds a quoted string to the compiled code.

Renvoie
$this

◆ subcompile()

subcompile ( Node $node,
bool $raw = true )
Renvoie
$this

◆ write()

write ( ...)

Writes a string to the compiled code by adding indentation.

Renvoie
$this

La documentation de cette classe a été générée à partir du fichier suivant :