forked from qt-creator/qt-creator
QmlJS: Allow lookups on const Contexts. Pass const Contexts where ok.
In preparation for caching Contexts. Reviewed-by: Erik Verbruggen
This commit is contained in:
@@ -46,7 +46,7 @@ namespace Interpreter {
|
||||
class QMLJS_EXPORT Evaluate: protected AST::Visitor
|
||||
{
|
||||
public:
|
||||
Evaluate(Interpreter::Context *context);
|
||||
Evaluate(const Interpreter::Context *context);
|
||||
virtual ~Evaluate();
|
||||
|
||||
const Interpreter::Value *operator()(AST::Node *ast);
|
||||
@@ -156,7 +156,7 @@ protected:
|
||||
private:
|
||||
QmlJS::Document::Ptr _doc;
|
||||
Interpreter::Engine *_engine;
|
||||
Interpreter::Context *_context;
|
||||
const Interpreter::Context *_context;
|
||||
const Interpreter::ObjectValue *_scope;
|
||||
const Interpreter::Value *_result;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user