Handle bound classes as constants during evaluation
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-06-13 17:12:46 +02:00
parent 1cb65f17c9
commit 10a2535c96
12 changed files with 225 additions and 204 deletions

View File

@@ -38,7 +38,7 @@ public:
_hash = rand();
}
std::shared_ptr<ScriptType> GetType(){
std::shared_ptr<ScriptType> GetType() const{
return _type;
}
@@ -57,7 +57,7 @@ public:
return this->_hash == ((ScriptFunctionEvalValue*)b)->_hash;
};
std::shared_ptr<BoundBlockStatement> GetInnerBlock(){
std::shared_ptr<BoundBlockStatement> GetInnerBlock() const{
return _innerBlock;
}
@@ -65,7 +65,7 @@ public:
return _hash;
}
std::shared_ptr<EvaluationScope> GetScope(){
std::shared_ptr<EvaluationScope> GetScope() const{
return _scope;
}
};