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

Breadcrumb

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

function ForOfStatement::setAwait

Sets the async iteration flag

Parameters

bool $await Async iteration flag:

Return value

$this

File

vendor/mck89/peast/lib/Peast/Syntax/Node/ForOfStatement.php, line 56

Class

ForOfStatement
A node that represents the "for...of" statement. For example: for (var a of b) {}

Namespace

Peast\Syntax\Node

Code

public function setAwait($await) {
    $this->await = (bool) $await;
    return $this;
}

API Navigation

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