function CommentsRegistry::onEndParsing
Listener called when parsing process ends
Return value
void
File
-
vendor/
mck89/ peast/ lib/ Peast/ Syntax/ CommentsRegistry.php, line 181
Class
- CommentsRegistry
- Comments registry class. Internal class used to manage comments
Namespace
Peast\SyntaxCode
public function onEndParsing() {
//Return if there are no comments to process
if ($this->registry) {
//Make sure nodes start indices map is sorted
ksort($this->nodesStartMap);
//Loop all comment groups in the registry
foreach ($this->registry as $group) {
$this->findNodeForCommentsGroup($group);
}
}
}