You are here

protected function DomainPart::parseDomainComments in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/egulias/email-validator/src/Egulias/EmailValidator/Parser/DomainPart.php \Egulias\EmailValidator\Parser\DomainPart::parseDomainComments()
1 call to DomainPart::parseDomainComments()
DomainPart::parse in vendor/egulias/email-validator/src/Egulias/EmailValidator/Parser/DomainPart.php

File

vendor/egulias/email-validator/src/Egulias/EmailValidator/Parser/DomainPart.php, line 304

Class

DomainPart

Namespace

Egulias\EmailValidator\Parser

Code

protected function parseDomainComments() {
  $this
    ->isUnclosedComment();
  while (!$this->lexer
    ->isNextToken(EmailLexer::S_CLOSEPARENTHESIS)) {
    $this
      ->warnEscaping();
    $this->lexer
      ->moveNext();
  }
  $this->lexer
    ->moveNext();
  if ($this->lexer
    ->isNextToken(EmailLexer::S_DOT)) {
    throw new \InvalidArgumentException('ERR_EXPECTING_ATEXT');
  }
}