Index

VariableRefNode

MMO\client\scs\nodes · 1 symbol · generated 5 Oct 2026

class

VariableRefNode

VariableRefNode.php:11

$name, $map.key, $colors.primary or $tokens::palette.n50.

class MMO\client\scs\nodes\VariableRefNode extends MMO\client\scs\nodes\Node
Namespace
MMO\client\scs\nodes
Extends
Node
Resolution order: the enclosing block scopes, the namespace the reference is written in, then the declared themes -- a theme hit becomes `var(--colors-primary)` rather than the token's value. A `namespace::` prefix skips straight to that namespace's variables.

Properties3

Methods2

__construct($name, $path, $namespace)

VariableRefNode.php:17
function __construct(string $name, array $path = [], ?string $namespace = null)
$namestring
$path = []arraythe dotted path after the name
$namespace = nullnull | stringthe namespace written before ::, null when the name is unqualified
Inherited members (3)
PropertiesDeclared byDescription
locationNode
wsNode
MethodsDeclared byDescription
at($location, $ws)Node