summaryrefslogtreecommitdiff
path: root/src/libs/qmljs/qmljsdocument.cpp
diff options
context:
space:
mode:
authorChristian Kamm <christian.d.kamm@nokia.com>2010-02-02 15:55:17 +0100
committerChristian Kamm <christian.d.kamm@nokia.com>2010-02-02 16:03:43 +0100
commit03fa188b41e46d9b0f6ad4d4e6e97f2d3711568c (patch)
treee69aa29c4b62687d86e46ed90e4de0a28cebd270 /src/libs/qmljs/qmljsdocument.cpp
parente7a330f92a056074c294d5198c6768cd610e64b5 (diff)
downloadqt-creator-03fa188b41e46d9b0f6ad4d4e6e97f2d3711568c.tar.gz
Bind each QML document after parsing. Link them before use.
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'src/libs/qmljs/qmljsdocument.cpp')
-rw-r--r--src/libs/qmljs/qmljsdocument.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libs/qmljs/qmljsdocument.cpp b/src/libs/qmljs/qmljsdocument.cpp
index 262d7745e3..a215198fe9 100644
--- a/src/libs/qmljs/qmljsdocument.cpp
+++ b/src/libs/qmljs/qmljsdocument.cpp
@@ -28,6 +28,7 @@
**************************************************************************/
#include "qmljsdocument.h"
+#include "qmljsbind.h"
#include <qmljs/parser/qmljsast_p.h>
#include <qmljs/parser/qmljslexer_p.h>
#include <qmljs/parser/qmljsparser_p.h>
@@ -143,6 +144,8 @@ bool Document::parseQml()
_ast = parser.ast();
_diagnosticMessages = parser.diagnosticMessages();
+ _bind = BindPtr(new Bind(this));
+
return _parsedCorrectly;
}
@@ -164,6 +167,8 @@ bool Document::parseJavaScript()
_ast = cast<Program*>(parser.rootNode());
_diagnosticMessages = parser.diagnosticMessages();
+ _bind = BindPtr(new Bind(this));
+
return _parsedCorrectly;
}
@@ -190,6 +195,11 @@ bool Document::parseExpression()
return _parsedCorrectly;
}
+BindPtr Document::bind() const
+{
+ return _bind;
+}
+
Snapshot::Snapshot()
{
}