"next" => null,
"comments" => array
() );
} //Add the comment token to the buffer
$this->buffer
["comments"
][] =
$token;
} else { if ($token) { $loc =
$token->location;
//Store the token end position
$this->lastTokenIndex =
$loc->end->
getIndex();
if ($this->buffer
) { //Fill the "next" key on the comments buffer with the token
//start position
$this->buffer
["next"
] =
$loc->start->
getIndex();
} } //If there is an open comment buffer, close it and move it to the
//registry
if ($buffer =
$this->buffer
) { //Use the location as key to add the group of comments to the