Node representing a Hypertext reference.
Definition at line 816 of file docnode.h.
Definition at line 1450 of file docnode.cpp.
1451{
1453 Token retval(TokenRetval::RetVal_OK);
1455
1457 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
1458 {
1460 {
1461 switch (tok.
value())
1462 {
1463 case TokenRetval::TK_HTMLTAG:
1464 {
1467 {
1468 goto endhref;
1469 }
1471 {
1473 }
1474 else
1475 {
1476 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unexpected html tag <%s%s> found within <a href=...> context",
1478 }
1479 }
1480 break;
1481 default:
1483 break;
1484 }
1485 }
1487 }
1488 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
1489 {
1491 " <a href=...> tag");
1492 }
1493endhref:
1495 return retval;
1496}
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
const char * qPrint(const char *s)
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(), qPrint(), DocNode::thisVariant(), DocParserContext::token, DocParser::tokenizer, Token::value(), and warn_doc_error.