Automattic\WooCommerce\Vendor\Sabberworm\CSS\Parsing
ParserState::consumeComment
Метод класса: ParserState{}
Хуков нет.
Возвращает
Comment|false.
Использование
$ParserState = new ParserState(); $ParserState->consumeComment();
Код ParserState::consumeComment() ParserState::consumeComment WC 10.9.1
public function consumeComment()
{
$mComment = false;
if ($this->comes('/*')) {
$iLineNo = $this->iLineNo;
$this->consume(1);
$mComment = '';
while (($char = $this->consume(1)) !== '') {
$mComment .= $char;
if ($this->comes('*/')) {
$this->consume(2);
break;
}
}
}
if ($mComment !== false) {
// We skip the * which was included in the comment.
return new Comment(substr($mComment, 1), $iLineNo);
}
return $mComment;
}