Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ParserAbstract.php

function ParserAbstract::isSimpleExit

Parameters

array<Node\Arg|Node\VariadicPlaceholder> $args :

1 call to ParserAbstract::isSimpleExit()
ParserAbstract::createExitExpr in vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php

File

vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php, line 1200

Class

ParserAbstract

Namespace

PhpParser

Code

private function isSimpleExit(array $args) : bool {
    if (\count($args) === 0) {
        return true;
    }
    if (\count($args) === 1) {
        $arg = $args[0];
        return $arg instanceof Arg && $arg->name === null && $arg->byRef === false && $arg->unpack === false;
    }
    return false;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal