Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/AbstractLiteral.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@

namespace Eventjet\Ausdruck;

/**
* The base for literal nodes — expressions whose value is known without a scope. The {@see self::value()} extension
* point exists only so a literal can materialize itself and its nested literals ({@see ListLiteral}, {@see StructLiteral})
* without going through {@see Expression::evaluate()}; the three subclasses that need it all live in this package, so
* nothing outside it has reason to add a fourth.
*
* @internal
* @psalm-internal Eventjet\Ausdruck
*/
abstract class AbstractLiteral extends Expression
{
abstract public function value(): mixed;
Expand Down
4 changes: 4 additions & 0 deletions src/ListLiteral.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
use function implode;
use function sprintf;

/**
* @internal
* @psalm-internal Eventjet\Ausdruck
*/
final class ListLiteral extends AbstractLiteral
{
/**
Expand Down
Loading