Introduced Document::CheckMode.

This commit is contained in:
Roberto Raggi
2009-06-26 09:11:14 +02:00
parent 0b1bc40b65
commit fd8cd69a47
6 changed files with 48 additions and 22 deletions

View File

@@ -610,10 +610,16 @@ public:
void operator()(Document::Ptr doc)
{
_doc = doc;
doc->parse();
doc->check();
if (_workingCopy.contains(doc->fileName())) {
Document::CheckMode mode = Document::FastCheck;
if (_workingCopy.contains(doc->fileName()))
mode = Document::FullCheck;
doc->parse();
doc->check(mode);
if (mode == Document::FullCheck) {
// run the binding pass
NamespaceBindingPtr ns = bind(doc, _snapshot);