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

Breadcrumb

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

function Standard::pNewOperand

2 calls to Standard::pNewOperand()
Standard::pExpr_Instanceof in vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php
Standard::pExpr_New in vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php

File

vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php, line 1153

Class

Standard

Namespace

PhpParser\PrettyPrinter

Code

protected function pNewOperand(Node $node) : string {
    if (!$this->newOperandRequiresParens($node)) {
        return $this->p($node);
    }
    else {
        return '(' . $this->p($node) . ')';
    }
}

API Navigation

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