forked from qt-creator/qt-creator
Make QmlJS::Link private. Use Context::build to set up a context.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user