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

Breadcrumb

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

function LineCountingVisitor::comments

Return value

Comment[]

1 call to LineCountingVisitor::comments()
LineCountingVisitor::result in vendor/sebastian/lines-of-code/src/LineCountingVisitor.php

File

vendor/sebastian/lines-of-code/src/LineCountingVisitor.php, line 83

Class

LineCountingVisitor

Namespace

SebastianBergmann\LinesOfCode

Code

private function comments() : array {
    $comments = [];
    foreach ($this->comments as $comment) {
        $comments[$comment->getStartLine() . '_' . $comment->getStartTokenPos() . '_' . $comment->getEndLine() . '_' . $comment->getEndTokenPos()] = $comment;
    }
    return $comments;
}

API Navigation

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