Lines Matching refs:Cast

9 use PhpParser\Node\Expr\Cast;  alias
483 … protected function pExpr_Cast_Int(Cast\Int_ $node, int $precedence, int $lhsPrecedence): string {
484 … return $this->pPrefixOp(Cast\Int_::class, '(int) ', $node->expr, $precedence, $lhsPrecedence);
487 …protected function pExpr_Cast_Double(Cast\Double $node, int $precedence, int $lhsPrecedence): stri…
488 $kind = $node->getAttribute('kind', Cast\Double::KIND_DOUBLE);
489 if ($kind === Cast\Double::KIND_DOUBLE) {
491 } elseif ($kind === Cast\Double::KIND_FLOAT) {
494 assert($kind === Cast\Double::KIND_REAL);
497 …return $this->pPrefixOp(Cast\Double::class, $cast . ' ', $node->expr, $precedence, $lhsPrecedence);
500 …protected function pExpr_Cast_String(Cast\String_ $node, int $precedence, int $lhsPrecedence): str…
501 …return $this->pPrefixOp(Cast\String_::class, '(string) ', $node->expr, $precedence, $lhsPrecedence…
504 …protected function pExpr_Cast_Array(Cast\Array_ $node, int $precedence, int $lhsPrecedence): strin…
505 … return $this->pPrefixOp(Cast\Array_::class, '(array) ', $node->expr, $precedence, $lhsPrecedence);
508 …protected function pExpr_Cast_Object(Cast\Object_ $node, int $precedence, int $lhsPrecedence): str…
509 …return $this->pPrefixOp(Cast\Object_::class, '(object) ', $node->expr, $precedence, $lhsPrecedence…
512 …protected function pExpr_Cast_Bool(Cast\Bool_ $node, int $precedence, int $lhsPrecedence): string {
513 … return $this->pPrefixOp(Cast\Bool_::class, '(bool) ', $node->expr, $precedence, $lhsPrecedence);
516 …protected function pExpr_Cast_Unset(Cast\Unset_ $node, int $precedence, int $lhsPrecedence): strin…
517 … return $this->pPrefixOp(Cast\Unset_::class, '(unset) ', $node->expr, $precedence, $lhsPrecedence);