Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.shinegis.mu
/
htdocs
/
functions
/
scssphp
/
src
/
Ast
/
/srv/data/web/vhosts/www.shinegis.mu/htdocs/functions/scssphp/src/Ast/FakeAstNode.php
<?php /** * SCSSPHP * * @copyright 2012-2020 Leaf Corcoran * * @license http://opensource.org/licenses/MIT MIT * * @link http://scssphp.github.io/scssphp */ namespace ScssPhp\ScssPhp\Ast; use ScssPhp\ScssPhp\SourceSpan\FileSpan; /** * An {@see AstNode} that just exposes a single span generated by a callback. * * @internal */ final class FakeAstNode implements AstNode { /** * @var callable(): FileSpan * @readonly */ private $callback; /** * @param callable(): FileSpan $callback */ public function __construct(callable $callback) { $this->callback = $callback; } public function getSpan(): FileSpan { return ($this->callback)(); } public function __toString(): string { return ''; } }