3 declare(strict_types=1);
5 namespace CuyZ\Valinor\Type\Parser\Lexer\Token;
7 use CuyZ\Valinor\Type\Parser\Exception\UnknownSymbol;
8 use CuyZ\Valinor\Type\Parser\Lexer\TokenStream;
9 use CuyZ\Valinor\Type\Type;
12 final class UnknownSymbolToken implements TraversingToken
14 public function __construct(private string $symbol) {}
16 public function traverse(TokenStream $stream): Type
18 throw new UnknownSymbol($this->symbol);
21 public function symbol(): string