Node representing a Hypertext reference.
Definition at line 816 of file docnode.h.
Definition at line 1459 of file docnode.cpp.
1460{
1462 Token retval(TokenRetval::RetVal_OK);
1464
1466 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
1467 {
1469 {
1470 switch (tok.
value())
1471 {
1472 case TokenRetval::TK_HTMLTAG:
1473 {
1476 {
1477 goto endhref;
1478 }
1480 {
1482 }
1483 else
1484 {
1485 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unexpected html tag <{}{}> found within <a href=...> context",
1486 parser()->context.token->endTag?
"/":
"",
parser()->context.token->name);
1487 }
1488 }
1489 break;
1490 default:
1492 break;
1493 }
1494 }
1496 }
1497 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
1498 {
1500 " <a href=...> tag");
1501 }
1502endhref:
1504 return retval;
1505}
DocNodeVariant * thisVariant()
void handlePendingStyleCommands(DocNodeVariant *parent, DocNodeList &children)
void errorHandleDefaultToken(DocNodeVariant *parent, Token tok, DocNodeList &children, const QCString &txt)
TokenRetval value() const
bool is_any_of(ARGS... args) const
#define warn_doc_error(file, line, fmt,...)
const Mapper< HtmlTagType > * htmlTagMapper
void append(Args &&... args)
Append a new DocNodeVariant to the list by constructing it with type T and parameters Args.
References DocNodeList::append(), TokenInfo::attribs, AUTO_TRACE, DocCompoundNode::children(), DocParser::context, DocParser::errorHandleDefaultToken(), DocParser::handlePendingStyleCommands(), HTML_A, HTML_BR, Mappers::htmlTagMapper, Token::is_any_of(), DocTokenizer::lex(), DocNode::parser(), DocNode::thisVariant(), DocParserContext::token, DocParser::tokenizer, Token::value(), and warn_doc_error.