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
Namespace
SebastianBergmann\LinesOfCodeCode
private function comments() : array {
$comments = [];
foreach ($this->comments as $comment) {
$comments[$comment->getStartLine() . '_' . $comment->getStartTokenPos() . '_' . $comment->getEndLine() . '_' . $comment->getEndTokenPos()] = $comment;
}
return $comments;
}