Commit 279cc09c authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlJS::SimpleReader: simple bugfix (initialisation)

The user can use readFromSource repeatedly.

Change-Id: Ibb7da95743ae6ecfd4492bb0163ff3599d5bcdb5
Reviewed-by: default avatarThomas Hartmann <>
parent 1fdd1727
......@@ -135,6 +135,9 @@ bool SimpleAbstractStreamReader::readFile(const QString &fileName)
bool SimpleAbstractStreamReader::readFromSource(const QString &source)
m_currentSourceLocation = AST::SourceLocation();
Engine engine;
Lexer lexer(&engine);
Parser parser(&engine);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment