forked from qt-creator/qt-creator
QmlJS::SimpleReader: simple bugfix (initialisation)
The user can use readFromSource repeatedly. Change-Id: Ibb7da95743ae6ecfd4492bb0163ff3599d5bcdb5 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
@@ -135,6 +135,9 @@ bool SimpleAbstractStreamReader::readFile(const QString &fileName)
|
||||
|
||||
bool SimpleAbstractStreamReader::readFromSource(const QString &source)
|
||||
{
|
||||
m_errors.clear();
|
||||
m_currentSourceLocation = AST::SourceLocation();
|
||||
|
||||
Engine engine;
|
||||
Lexer lexer(&engine);
|
||||
Parser parser(&engine);
|
||||
|
||||
Reference in New Issue
Block a user