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

Breadcrumb

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

function Token::getEndPos

Get (exclusive) zero-based end position of the token.

File

vendor/nikic/php-parser/lib/PhpParser/Token.php, line 10

Class

Token
A PHP token. On PHP 8.0 this extends from PhpToken.

Namespace

PhpParser

Code

public function getEndPos() : int {
    return $this->pos + \strlen($this->text);
}

API Navigation

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