Don't try to verify the AST after parse errors
In preparation for the ES6 changes, where one or two files won't parse correctly anymore. Change-Id: Ie83e684761b2d7dcdec1d44f67006f60fb6e500c Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
parent
9814c60536
commit
19d3b7eb4c
|
@ -186,13 +186,12 @@ void tst_qqmlparser::qmlParser()
|
|||
Lexer lexer(&engine);
|
||||
lexer.setCode(code, 1, qmlMode);
|
||||
Parser parser(&engine);
|
||||
if (qmlMode)
|
||||
parser.parse();
|
||||
else
|
||||
parser.parseProgram();
|
||||
bool ok = qmlMode ? parser.parse() : parser.parseProgram();
|
||||
|
||||
check::Check chk;
|
||||
chk(parser.rootNode());
|
||||
if (ok) {
|
||||
check::Check chk;
|
||||
chk(parser.rootNode());
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue