src/Json/Json5/Ast/InfNode.php
<?php
/**
* This file is part of Railt package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Railt\Json\Json5\Ast;
/**
* @internal Internal class for json5 abstract syntax tree node representation
*/
class InfNode extends NumberNode
{
/**
* @return float
*/
public function reduce(): float
{
return $this->isPositive() ? \INF : -\INF;
}
}