Make QmlJS::Link private. Use Context::build to set up a context.

This commit is contained in:
Christian Kamm
2010-02-04 10:19:37 +01:00
parent 14f483c67b
commit 25e04d8ef1
6 changed files with 40 additions and 39 deletions

View File

@@ -29,6 +29,7 @@
#include "qmljsinterpreter.h"
#include "qmljscheck.h"
#include "qmljslink.h"
#include "parser/qmljsast_p.h"
#include <QtCore/QMetaObject>
#include <QtCore/QMetaProperty>
@@ -688,6 +689,12 @@ Context::~Context()
{
}
void Context::build(AST::Node *node, Document::Ptr doc, const Snapshot &snapshot)
{
Link link(this, doc, snapshot);
link.scopeChainAt(doc, node);
}
Engine *Context::engine() const
{
return _engine;