forked from qt-creator/qt-creator
QmlJS: Remove LookupContext.
Use Context or ScopeChain instead. Change-Id: I2489477eac08774ba41710ee81876aab11b5af24 Reviewed-on: http://codereview.qt.nokia.com/1699 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
|
||||
#include "qmljsscopechain.h"
|
||||
#include "qmljsbind.h"
|
||||
#include "qmljsevaluate.h"
|
||||
|
||||
using namespace QmlJS;
|
||||
using namespace QmlJS::Interpreter;
|
||||
@@ -101,6 +102,12 @@ const Value * ScopeChain::lookup(const QString &name, const ObjectValue **foundI
|
||||
return m_context->valueOwner()->undefinedValue();
|
||||
}
|
||||
|
||||
const Value *ScopeChain::evaluate(AST::Node *node) const
|
||||
{
|
||||
Evaluate evaluator(this);
|
||||
return evaluator(node);
|
||||
}
|
||||
|
||||
const ObjectValue *ScopeChain::globalScope() const
|
||||
{
|
||||
return m_globalScope;
|
||||
|
||||
Reference in New Issue
Block a user