Printer
MMO\client\scs · 1 symbol · generated 30 Sep 2026
Printer
Printer.php:27Prints an ast (Parser) back as Simple CSS source.
- Namespace
MMO\client\scs
Index
| indent | ||
| atRule($node, $depth) | ||
| block($head, $body, $depth) | ||
| call($node) | ||
| condition($node, $depth) | @if ... { } @else { }. | |
| expression($node) | ||
| forPrelude($node) | $i in 1..6 or $key:$value in $collection | |
| map($node) | ||
| params($params, $always) | ||
| print($node) | ||
| statement($node, $depth) | ||
| statements($statements, $depth) | ||
| string($node) | ||
| terms($node) | The terms of a value list, joined the way Evaluator::render reads them back. | |
| theme($node, $depth) | @theme [scope] { group { name: value; } } -- the dotted paths are folded back into the groups they were written as, in the order the file declared them. | |
| useCall($node) | ||
| value($node) | ||
| __construct($indent) |
Properties1
indent
- Type
- string
Methods17
atRule($node, $depth)
Printer.php:140| $node | AtRuleNode | |
| $depth | int | |
| returns | string |
block($head, $body, $depth)
Printer.php:155call($node)
Printer.php:239condition($node, $depth)
Printer.php:133@if ... { } @else { }.
expression($node)
Printer.php:48forPrelude($node)
Printer.php:160$i in 1..6 or $key:$value in $collection
map($node)
Printer.php:233params($params, $always)
Printer.php:172print($node)
Printer.php:37| $node | StylesheetNode | Node | array | what to print: a stylesheet, a statement list, or one statement |
| returns | string | the source, newline terminated when it is a statement |
statement($node, $depth)
Printer.php:67statements($statements, $depth)
Printer.php:61string($node)
Printer.php:224| $node | StringNode | |
| returns | string |
terms($node)
Printer.php:213The terms of a value list, joined the way Evaluator::render reads them back.
| $node | ValueListNode | |
| returns | string |
theme($node, $depth)
Printer.php:101@theme [scope] { group { name: value; } } -- the dotted paths are folded back into the groups they were written as, in the order the file declared them.
useCall($node)
Printer.php:183value($node)
Printer.php:192__construct($indent)
Printer.php:31| $indent = ' ' | string | one level of indentation |