forked from qt-creator/qt-creator
Delay the parsing of the document.
This commit is contained in:
@@ -390,6 +390,9 @@ void Document::check(CheckMode mode)
|
||||
{
|
||||
Q_ASSERT(!_globalNamespace);
|
||||
|
||||
if (! isParsed())
|
||||
parse();
|
||||
|
||||
Semantic semantic(_control);
|
||||
if (mode == FastCheck)
|
||||
semantic.setSkipFunctionBodies(true);
|
||||
@@ -450,7 +453,6 @@ Document::Ptr Snapshot::documentFromSource(const QByteArray &preprocessedCode,
|
||||
}
|
||||
|
||||
newDoc->setSource(preprocessedCode);
|
||||
newDoc->parse();
|
||||
return newDoc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user