Index

EvaluationContext

MMO\client\scs · 1 symbol · generated 30 Sep 2026

class

EvaluationContext

EvaluationContext.php:12

Everything an authorized php function may need to know about where it is being called from: the injected compilation context, the css selector currently being emitted, the compile-time scope and the source position (the spec, 48B.3).

readonly class MMO\client\scs\EvaluationContext
Namespace
MMO\client\scs
The selector is the **resolved** one: inside `.card { .title { padding: php::pad() } }` a context function receives `.card .title`, not `.title`.

Properties4

compilation

readonly
protected readonly MMO\client\scs\CompilationContext $compilation
Type
CompilationContext

location

readonly
protected readonly ?MMO\client\scs\SourceLocation $location
Type
null | SourceLocation

scope

readonly
protected readonly ?MMO\client\scs\Scope $scope
Type
null | Scope

selector

readonly
protected readonly ?string $selector
Type
null | string

Methods7

withScope($scope, $location)

EvaluationContext.php:34
function withScope( ?MMO\client\scs\Scope $scope, ?MMO\client\scs\SourceLocation $location = null ): static
$scopenull | Scope
$location = nullnull | SourceLocation
returnsstaticthe same context, bound to another scope and source position