Home
last modified time | relevance | path

Searched refs:Double (Results 1 – 8 of 8) sorted by relevance

/PHP-Parser/lib/PhpParser/Node/Expr/Cast/
H A DDouble.php7 class Double extends Cast { class
/PHP-Parser/test/PhpParser/
H A DParserTestAbstract.php176 ["(float) 5.0", ['kind' => Expr\Cast\Double::KIND_FLOAT]],
177 ["(double) 5.0", ['kind' => Expr\Cast\Double::KIND_DOUBLE]],
178 ["(real) 5.0", ['kind' => Expr\Cast\Double::KIND_REAL]],
179 [" ( REAL ) 5.0", ['kind' => Expr\Cast\Double::KIND_REAL]],
/PHP-Parser/lib/PhpParser/
H A DParserAbstract.php12 use PhpParser\Node\Expr\Cast\Double; alias
727 return Double::KIND_FLOAT;
731 return Double::KIND_REAL;
734 return Double::KIND_DOUBLE;
H A DPrettyPrinterAbstract.php47 Cast\Double::class => [ 10, -1, -1],
1355 Cast\Int_::class, Cast\Double::class, Cast\String_::class, Cast\Array_::class,
/PHP-Parser/lib/PhpParser/PrettyPrinter/
H A DStandard.php482 …protected function pExpr_Cast_Double(Cast\Double $node, int $precedence, int $lhsPrecedence): stri…
483 $kind = $node->getAttribute('kind', Cast\Double::KIND_DOUBLE);
484 if ($kind === Cast\Double::KIND_DOUBLE) {
486 } elseif ($kind === Cast\Double::KIND_FLOAT) {
489 assert($kind === Cast\Double::KIND_REAL);
492 …return $this->pPrefixOp(Cast\Double::class, $cast . ' ', $node->expr, $precedence, $lhsPrecedence);
/PHP-Parser/grammar/
H A Dphp.y1027 $$ = new Expr\Cast\Double($2, $attrs); }
/PHP-Parser/lib/PhpParser/Parser/
H A DPhp7.php2319 $self->semValue = new Expr\Cast\Double($self->semStack[$stackPos-(2-2)], $attrs);
H A DPhp8.php2313 $self->semValue = new Expr\Cast\Double($self->semStack[$stackPos-(2-2)], $attrs);

Completed in 81 milliseconds