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

Breadcrumb

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

function Error::getEndColumn

Gets the end column (1-based) into the line where the error ended.

Parameters

string $code Source code of the file:

1 call to Error::getEndColumn()
Error::getMessageWithColumnInfo in vendor/nikic/php-parser/lib/PhpParser/Error.php
Formats message including line and column information.

File

vendor/nikic/php-parser/lib/PhpParser/Error.php, line 117

Class

Error

Namespace

PhpParser

Code

public function getEndColumn(string $code) : int {
    if (!$this->hasColumnInfo()) {
        throw new \RuntimeException('Error does not have column information');
    }
    return $this->toColumn($code, $this->attributes['endFilePos']);
}

API Navigation

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