D6013: DebugVisitor: catch and show invalid token indizes
Friedrich W. H. Kossebau
noreply at phabricator.kde.org
Mon May 29 14:55:13 UTC 2017
kossebau added a comment.
Example output with an invalid token index:
QDEBUG : Css::TestParser::parser(one declaration without semicolon) start[0, 0, 0] --- [14, 0, 14] "body{color:red}"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) imports->importList[0, 0, 0] --- [invalid token index: -1] ""
QDEBUG : Css::TestParser::parser(one declaration without semicolon) rules->ruleList[0, 0, 0] --- [14, 0, 14] "body{color:red}"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) importList[0, 0, 0] --- [invalid token index: -1] ""
QDEBUG : Css::TestParser::parser(one declaration without semicolon) ruleList[0, 0, 0] --- [14, 0, 14] "body{color:red}"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) rules[]->rule[0, 0, 0] --- [14, 0, 14] "body{color:red}"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) rule[0, 0, 0] --- [14, 0, 14] "body{color:red}"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) ruleset->ruleset[0, 0, 0] --- [14, 0, 14] "body{color:red}"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) ruleset[0, 0, 0] --- [14, 0, 14] "body{color:red}"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) selectors->selectorList[0, 0, 0] --- [0, 0, 0] "body"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) declarations->declarationList[5, 0, 5] --- [11, 0, 11] "color:red"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) selectorList[0, 0, 0] --- [0, 0, 0] "body"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) selectors[]->selector[0, 0, 0] --- [0, 0, 0] "body"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) selector[0, 0, 0] --- [0, 0, 0] "body"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) simpleSelector->simpleSelectorWithWhitespace[0, 0, 0] --- [0, 0, 0] "body"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) simpleSelectorWithWhitespace[0, 0, 0] --- [0, 0, 0] "body"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) simpleSelector->simpleSelector[0, 0, 0] --- [0, 0, 0] "body"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) simpleSelector[0, 0, 0] --- [0, 0, 0] "body"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) element->elementName[0, 0, 0] --- [0, 0, 0] "body"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) elementName[0, 0, 0] --- [0, 0, 0] "body"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) declarationList[5, 0, 5] --- [11, 0, 11] "color:red"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) declarations[]->declaration[5, 0, 5] --- [11, 0, 11] "color:red"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) declaration[5, 0, 5] --- [11, 0, 11] "color:red"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) property->property[5, 0, 5] --- [5, 0, 5] "color"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) expr->expr[11, 0, 11] --- [11, 0, 11] "red"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) property[5, 0, 5] --- [5, 0, 5] "color"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) expr[11, 0, 11] --- [11, 0, 11] "red"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) terms[]->term[11, 0, 11] --- [11, 0, 11] "red"
QDEBUG : Css::TestParser::parser(one declaration without semicolon) term[11, 0, 11] --- [11, 0, 11] "red"
REPOSITORY
R51 KDevelop: PG Qt
REVISION DETAIL
https://phabricator.kde.org/D6013
To: kossebau, #kdevelop
Cc: kdevelop-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20170529/6956a1fb/attachment.html>
More information about the KDevelop-devel
mailing list