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

Breadcrumb

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

function Scanner::reconsumeCurrentTokenInJSXMode

Reconsumes the current token in jsx mode

Return value

Token|null

File

vendor/mck89/peast/lib/Peast/Syntax/JSX/Scanner.php, line 59

Class

Scanner
JSX scanner trait

Namespace

Peast\Syntax\JSX

Code

public function reconsumeCurrentTokenInJSXMode() {
    $this->jsx = true;
    $this->nextToken = null;
    $this->currentToken = null;
    $startPosition = $this->getPosition();
    $this->setScanPosition($startPosition);
    $token = $this->getToken();
    $this->jsx = false;
    return $token;
}
RSS feed
Powered by Drupal