[ Index ]

PHP Cross Reference of phpBB-3.3.5-deutsch

title

Body

[close]

/vendor/twig/twig/src/ -> Compiler.php (summary)

(no description)

File Size: 245 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Compiler:: (14 methods):
  __construct()
  getEnvironment()
  getSource()
  compile()
  subcompile()
  raw()
  write()
  string()
  repr()
  addDebugInfo()
  getDebugInfo()
  indent()
  outdent()
  getVarName()


Class: Compiler  - X-Ref

Compiles a node to PHP code.

__construct(Environment $env)   X-Ref
No description

getEnvironment()   X-Ref
Returns the environment instance related to this compiler.

return: Environment

getSource()   X-Ref
Gets the current PHP code after compilation.

return: string The PHP code

compile(Node $node, $indentation = 0)   X-Ref
Compiles a node.

param: int $indentation The current indentation
return: $this

subcompile(Node $node, $raw = true)   X-Ref
No description

raw($string)   X-Ref
Adds a raw string to the compiled code.

param: string $string The string
return: $this

write(...$strings)   X-Ref
Writes a string to the compiled code by adding indentation.

return: $this

string($value)   X-Ref
Adds a quoted string to the compiled code.

param: string $value The string
return: $this

repr($value)   X-Ref
Returns a PHP representation of a given value.

param: mixed $value The value to convert
return: $this

addDebugInfo(Node $node)   X-Ref
Adds debugging information.

return: $this

getDebugInfo()   X-Ref
No description

indent($step = 1)   X-Ref
Indents the generated code.

param: int $step The number of indentation to add
return: $this

outdent($step = 1)   X-Ref
Outdents the generated code.

param: int $step The number of indentation to remove
return: $this

getVarName()   X-Ref
No description



Generated: Mon Oct 4 17:42:11 2021 Cross-referenced by PHPXref 0.7.1