Home
last modified time | relevance | path

Searched refs:UScriptValue (Results 1 – 8 of 8) sorted by relevance

/base/update/updater/services/script/script_interpreter/
Dscript_context.h27 class UScriptValue; variable
30 using UScriptValuePtr = std::shared_ptr<UScriptValue>;
33 class UScriptValue {
44 explicit UScriptValue(UScriptValueType type) : type_(type) {} in UScriptValue() function
45 virtual ~UScriptValue() {} in ~UScriptValue()
69 class IntegerValue : public UScriptValue {
71 …explicit IntegerValue(int32_t value) : UScriptValue(UScriptValue::VALUE_TYPE_INTEGER), value_(valu… in IntegerValue()
91 class FloatValue : public UScriptValue {
93 … explicit FloatValue(float value) : UScriptValue(UScriptValue::VALUE_TYPE_FLOAT), value_(value) {} in FloatValue()
114 class StringValue : public UScriptValue {
[all …]
Dscript_expression.cpp57 return std::make_shared<UScriptValue>(UScriptValue::VALUE_TYPE_ERROR); in Execute()
76 UScriptValue::ScriptToString(variable).c_str()); in Execute()
80 return std::make_shared<UScriptValue>(UScriptValue::VALUE_TYPE_ERROR); in Execute()
100 UScriptValue::ScriptToString(result).c_str()); in Execute()
101 if (result->GetValueType() == UScriptValue::VALUE_TYPE_ERROR) { in Execute()
133 UScriptValue::ScriptToString(left).c_str(), opStr[action_].c_str()); in Execute()
142 UScriptValue::ScriptToString(left).c_str(), opStr[action_].c_str(), in Execute()
143UScriptValue::ScriptToString(right).c_str(), UScriptValue::ScriptToString(value).c_str()); in Execute()
Dscript_context.cpp107 UScriptValue::UScriptValueType type = innerParam_[index]->GetValueType(); in GetParamType()
135 UScriptValue::ScriptToString(value).c_str()); in UpdateVariable()
144 if (value->GetValueType() != UScriptValue::VALUE_TYPE_LIST) { in UpdateVariables()
165 UScriptValuePtr UScriptValue::Computer(int32_t action, UScriptValuePtr value) in Computer()
189 if (rightValue->GetValueType() == UScriptValue::VALUE_TYPE_INTEGER) { \
191 } else if ((rightValue)->GetValueType() == UScriptValue::VALUE_TYPE_FLOAT) { \
206 if (rightValue->GetValueType() == UScriptValue::VALUE_TYPE_INTEGER) { \
208 } else if ((rightValue)->GetValueType() == UScriptValue::VALUE_TYPE_FLOAT) { \
232 if (rightValue->GetValueType() == UScriptValue::VALUE_TYPE_INTEGER) { \
234 } else if ((rightValue)->GetValueType() == UScriptValue::VALUE_TYPE_FLOAT) { \
[all …]
Dscript_statement.cpp33 case UScriptValue::VALUE_TYPE_INTEGER: in UpdateStatementResult()
35 case UScriptValue::VALUE_TYPE_FLOAT: in UpdateStatementResult()
37 case UScriptValue::VALUE_TYPE_STRING: in UpdateStatementResult()
41 case UScriptValue::VALUE_TYPE_ERROR: in UpdateStatementResult()
44 if (value->GetValueType() == UScriptValue::VALUE_TYPE_ERROR) { in UpdateStatementResult()
48 case UScriptValue::VALUE_TYPE_LIST: in UpdateStatementResult()
52 case UScriptValue::VALUE_TYPE_RETURN: in UpdateStatementResult()
76 str.append(" value : " + UScriptValue::ScriptToString(result->GetResultValue())); in ScriptToString()
195 if (v == nullptr || v->GetValueType() == UScriptValue::VALUE_TYPE_ERROR) { in Execute()
197 UScriptValue::ScriptToString(v).c_str()); in Execute()
[all …]
Dscript_interpreter.cpp197 if (result == nullptr || result->GetValueType() == UScriptValue::VALUE_TYPE_ERROR) { in ExecuteNativeFunc()
202 if (result->GetValueType() != UScriptValue::VALUE_TYPE_LIST) { in ExecuteNativeFunc()
Dscript_function.cpp59 if (var == nullptr || var->GetValueType() == UScriptValue::VALUE_TYPE_ERROR) { in Execute()
/base/update/updater/test/unittest/script/
Dscript_interpreter_unittest.cpp45 … UScriptValuePtr rightValue = std::make_shared<UScriptValue>(UScriptValue::VALUE_TYPE_RETURN); in TestScriptInterpreterScriptValue()
46 …std::unique_ptr<UScriptValue> value = std::make_unique<UScriptValue>(UScriptValue::VALUE_TYPE_RETU… in TestScriptInterpreterScriptValue()
/base/update/updater/test/unittest/script/script_instruction/
Dbasic_instruction_unittest.cpp84 EXPECT_EQ(output[0]->GetValueType(), UScriptValue::VALUE_TYPE_INTEGER); in TestBasicInstructionIsSubString01()
95 EXPECT_EQ(output[0]->GetValueType(), UScriptValue::VALUE_TYPE_INTEGER); in TestBasicInstructionIsSubString01()
169 EXPECT_EQ(output[0]->GetValueType(), UScriptValue::VALUE_TYPE_STRING); in TestBasicInstructionConcat()
188 EXPECT_EQ(output[0]->GetValueType(), UScriptValue::VALUE_TYPE_STRING); in TestBasicInstructionConcat()