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

Breadcrumb

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

function Error::hasColumnInfo

Returns whether the error has start and end column information.

For column information enable the startFilePos and endFilePos in the lexer options.

2 calls to Error::hasColumnInfo()
Error::getEndColumn in vendor/nikic/php-parser/lib/PhpParser/Error.php
Gets the end column (1-based) into the line where the error ended.
Error::getStartColumn in vendor/nikic/php-parser/lib/PhpParser/Error.php
Gets the start column (1-based) into the line where the error started.

File

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

Class

Error

Namespace

PhpParser

Code

public function hasColumnInfo() : bool {
    return isset($this->attributes['startFilePos'], $this->attributes['endFilePos']);
}

API Navigation

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