Home
last modified time | relevance | path

Searched refs:Result (Results 1 – 25 of 49) sorted by relevance

12

/arkcompiler/toolchain/tooling/base/
Dpt_params.cpp23 Result ret; in Create()
27 if (ret == Result::SUCCESS) { in Create()
29 } else if (ret == Result::TYPE_ERROR) { // optional value in Create()
45 Result ret; in Create()
49 if (ret == Result::SUCCESS) { in Create()
56 if (ret == Result::SUCCESS) { in Create()
63 if (ret == Result::SUCCESS) { in Create()
65 } else if (ret == Result::TYPE_ERROR) { // optional value in Create()
70 if (ret == Result::SUCCESS) { in Create()
72 } else if (ret == Result::TYPE_ERROR) { // optional value in Create()
[all …]
Dpt_json.cpp351 Result PtJson::GetBool(const char *key, bool *value) const in GetBool()
355 return Result::NOT_EXIST; in GetBool()
358 return Result::TYPE_ERROR; in GetBool()
362 return Result::SUCCESS; in GetBool()
365 Result PtJson::GetInt(const char *key, int32_t *value) const in GetInt()
368 Result ret = GetDouble(key, &result); in GetInt()
369 if (ret == Result::SUCCESS) { in GetInt()
375 Result PtJson::GetInt64(const char *key, int64_t *value) const in GetInt64()
378 Result ret = GetDouble(key, &result); in GetInt64()
379 if (ret == Result::SUCCESS) { in GetInt64()
[all …]
Dpt_json.h25 enum class Result : uint8_t { enum
98 Result GetBool(const char *key, bool *value) const;
99 Result GetInt(const char *key, int32_t *value) const;
100 Result GetInt64(const char *key, int64_t *value) const;
101 Result GetUInt(const char *key, uint32_t *value) const;
102 Result GetDouble(const char *key, double *value) const;
103 Result GetString(const char *key, std::string *value) const;
104 Result GetObject(const char *key, std::unique_ptr<PtJson> *value) const;
105 Result GetArray(const char *key, std::unique_ptr<PtJson> *value) const;
106 Result GetAny(const char *key, std::unique_ptr<PtJson> *value) const;
Dpt_types.cpp935 Result ret; in Create()
939 if (ret == Result::SUCCESS) { in Create()
951 if (ret == Result::SUCCESS) { in Create()
957 } else if (ret == Result::TYPE_ERROR) { in Create()
963 if (ret == Result::SUCCESS) { in Create()
965 } else if (ret == Result::TYPE_ERROR) { in Create()
971 if (ret == Result::SUCCESS) { in Create()
973 } else if (ret == Result::TYPE_ERROR) { in Create()
979 if (ret == Result::SUCCESS) { in Create()
981 } else if (ret == Result::TYPE_ERROR) { in Create()
[all …]
/arkcompiler/toolchain/tooling/test/
Ddebugger_events_test.cpp72 ASSERT_EQ(breakpointResolved.ToJson()->GetObject("params", &json), Result::SUCCESS); in HWTEST_F_L0()
74 ASSERT_EQ(json->GetString("breakpointId", &breakpointId), Result::SUCCESS); in HWTEST_F_L0()
78 ASSERT_EQ(json->GetObject("location", &locationJson), Result::SUCCESS); in HWTEST_F_L0()
80 ASSERT_EQ(locationJson->GetString("scriptId", &scriptId), Result::SUCCESS); in HWTEST_F_L0()
83 ASSERT_EQ(locationJson->GetInt("lineNumber", &lineNumber), Result::SUCCESS); in HWTEST_F_L0()
96 ASSERT_EQ(json->GetObject("params", &params), Result::SUCCESS); in HWTEST_F_L0()
99 ASSERT_EQ(params->GetString("reason", &reason), Result::SUCCESS); in HWTEST_F_L0()
102 ASSERT_EQ(params->GetArray("callFrames", &callFrames), Result::SUCCESS); in HWTEST_F_L0()
111 ASSERT_EQ(json1->GetObject("params", &params), Result::SUCCESS); in HWTEST_F_L0()
121 ASSERT_EQ(json->GetString("method", &method), Result::SUCCESS); in HWTEST_F_L0()
[all …]
Ddebugger_returns_test.cpp70 ASSERT_EQ(enableReturns->ToJson()->GetString("debuggerId", &debuggerId), Result::SUCCESS); in HWTEST_F_L0()
84 ASSERT_EQ(setBreakpointByUrlReturns->ToJson()->GetString("breakpointId", &id), Result::SUCCESS); in HWTEST_F_L0()
88 …ASSERT_EQ(setBreakpointByUrlReturns->ToJson()->GetArray("locations", &locationsJson), Result::SUCC… in HWTEST_F_L0()
103 ASSERT_EQ(evaluateOnCallFrameReturns->ToJson()->GetObject("result", &json), Result::SUCCESS); in HWTEST_F_L0()
105 ASSERT_EQ(json->GetString("type", &type), Result::SUCCESS); in HWTEST_F_L0()
109 …ASSERT_EQ(evaluateOnCallFrameReturns->ToJson()->GetObject("exceptionDetails", &tmpJson), Result::S… in HWTEST_F_L0()
111 ASSERT_EQ(tmpJson->GetInt("exceptionId", &exceptionId), Result::SUCCESS); in HWTEST_F_L0()
125 …Q(getPossibleBreakpointsReturns->ToJson()->GetArray("locations", &locationsJson), Result::SUCCESS); in HWTEST_F_L0()
137 …ASSERT_EQ(getScriptSourceReturns->ToJson()->GetString("scriptSource", &scriptSource), Result::SUCC… in HWTEST_F_L0()
141 ASSERT_EQ(getScriptSourceReturns->ToJson()->GetString("bytecode", &bytecode), Result::SUCCESS); in HWTEST_F_L0()
[all …]
Ddebugger_types_test.cpp242 Result ret; in HWTEST_F_L0()
252 EXPECT_EQ(ret, Result::SUCCESS); in HWTEST_F_L0()
256 EXPECT_EQ(ret, Result::SUCCESS); in HWTEST_F_L0()
260 EXPECT_EQ(ret, Result::SUCCESS); in HWTEST_F_L0()
264 EXPECT_EQ(ret, Result::SUCCESS); in HWTEST_F_L0()
268 EXPECT_EQ(ret, Result::SUCCESS); in HWTEST_F_L0()
272 EXPECT_EQ(ret, Result::SUCCESS); in HWTEST_F_L0()
475 Result ret; in HWTEST_F_L0()
486 EXPECT_EQ(ret, Result::SUCCESS); in HWTEST_F_L0()
490 EXPECT_EQ(ret, Result::SUCCESS); in HWTEST_F_L0()
[all …]
Dpt_returns_test.cpp62 …ASSERT_EQ(evaluateOnCallFrameReturns->ToJson()->GetObject("exceptionDetails", &tmpJson), Result::N… in HWTEST_F_L0()
72 ASSERT_EQ(getScriptSourceReturns->ToJson()->GetObject("bytecode", &tmpJson), Result::NOT_EXIST); in HWTEST_F_L0()
87 ASSERT_EQ(searchInContentReturns->ToJson()->GetArray("result", &json), Result::SUCCESS); in HWTEST_F_L0()
114 …ASSERT_EQ(setScriptSourceReturns->ToJson()->GetArray("callFrames", &callFramesJson), Result::SUCCE… in HWTEST_F_L0()
118 …ASSERT_EQ(setScriptSourceReturns->ToJson()->GetBool("stackChanged", &tmpStackChanged), Result::SUC… in HWTEST_F_L0()
121 …riptSourceReturns->ToJson()->GetObject("exceptionDetails", &exceptionDetailJson), Result::SUCCESS); in HWTEST_F_L0()
127 ASSERT_EQ(setScriptSource->ToJson()->GetArray("callFrames", &callJson), Result::NOT_EXIST); in HWTEST_F_L0()
129 ASSERT_EQ(setScriptSource->ToJson()->GetBool("stackChanged", &stack), Result::NOT_EXIST); in HWTEST_F_L0()
131 …ASSERT_EQ(setScriptSource->ToJson()->GetObject("exceptionDetails", &exceptionJson), Result::NOT_EX… in HWTEST_F_L0()
164 ASSERT_EQ(getPropertiesReturns->ToJson()->GetArray("result", &resultJson), Result::SUCCESS); in HWTEST_F_L0()
[all …]
Dpt_json_test.cpp160 ASSERT_EQ(root->GetBool("a", &b), Result::SUCCESS); in HWTEST_F_L0()
162 ASSERT_EQ(root->GetInt("b", &i32), Result::SUCCESS); in HWTEST_F_L0()
164 ASSERT_EQ(root->GetDouble("c", &d), Result::SUCCESS); in HWTEST_F_L0()
166 ASSERT_EQ(root->GetInt64("d", &i64), Result::SUCCESS); in HWTEST_F_L0()
168 ASSERT_EQ(root->GetString("e", &str), Result::SUCCESS); in HWTEST_F_L0()
170 ASSERT_EQ(root->GetObject("f", &json), Result::SUCCESS); in HWTEST_F_L0()
171 ASSERT_EQ(json->GetString("ch", &str), Result::SUCCESS); in HWTEST_F_L0()
173 ASSERT_EQ(root->GetArray("g", &json), Result::SUCCESS); in HWTEST_F_L0()
206 Result result1 = ptJson.GetAny(test, &ptr); in HWTEST_F_L0()
207 ASSERT_EQ(result1, Result::NOT_EXIST); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DgenericFunctionsAndConditionalInference.ts64 type Result<F extends Target, A> = Targets<A>[F] alias
70 str: Result<F, string>
71 num: Result<F, number>
72 lr<I, O>(a: Result<F, I>, o: Result<F, O>): Result<F, LR<F, I, O>>
73 dict: <P>(p: {[k in keyof P]: Result<F, P[k]>}) => Result<F, P>
DspecedNoStackBlown.ts28 …OTINPUT> = SpecValue<ROOTINPUT, ROOTINPUT>>(spec: SPEC, input: ROOTINPUT): Result<ROOTINPUT, SPEC>;
54 export type Result<INPUT, SPEC> = {[key in keyof INPUT]: true | any[] | Result<INPUT[key], any>};
DdeclarationEmitClassMixinLocalClassDeclaration.ts21 export type AnyFunction<Result = any> = (...input: any[]) => Result
/arkcompiler/ets_frontend/es2panda/typescript/types/
DobjectType.cpp66 relation->Result(false); in Identical()
73 relation->Result(false); in Identical()
84 relation->Result(false); in Identical()
132 relation->Result(false); in AssignProperties()
149 relation->Result(false); in AssignProperties()
173 relation->Result(false); in AssignSignatures()
211 relation->Result(false); in checkExcessProperties()
219 relation->Result(false); in AssignmentTarget()
223 relation->Result(true); in AssignmentTarget()
DtupleType.cpp82 relation->Result(false); in Identical()
92 relation->Result(true); in Identical()
100 relation->Result(false); in AssignmentTarget()
106 relation->Result(false); in AssignmentTarget()
110 relation->Result(true); in AssignmentTarget()
119 relation->Result(false); in AssignmentTarget()
133 relation->Result(false); in AssignmentTarget()
DneverType.cpp33 relation->Result(true); in Identical()
39 relation->Result(false); in AssignmentTarget()
44 relation->Result(true); in AssignmentSource()
DanyType.cpp28 relation->Result(true); in Identical()
34 relation->Result(true); in AssignmentTarget()
39 relation->Result(true); in AssignmentSource()
DnumberType.cpp31 relation->Result(true); in Identical()
38 relation->Result(true); in AssignmentTarget()
44 relation->Result(true); in AssignmentTarget()
DinterfaceType.cpp58 relation->Result(false); in Identical()
75 relation->Result(false); in Identical()
84 relation->Result(false); in Identical()
97 relation->Result(false); in Identical()
110 relation->Result(false); in Identical()
121 relation->Result(false); in Identical()
DunknownType.cpp33 relation->Result(true); in Identical()
39 relation->Result(true); in AssignmentTarget()
DsymbolType.cpp28 relation->Result(true); in Identical()
35 relation->Result(true); in AssignmentTarget()
DstringType.cpp28 relation->Result(true); in Identical()
35 relation->Result(true); in AssignmentTarget()
DbooleanType.cpp28 relation->Result(true); in Identical()
35 relation->Result(true); in AssignmentTarget()
DnonPrimitiveType.cpp28 relation->Result(true); in Identical()
35 relation->Result(true); in AssignmentTarget()
DbigintType.cpp28 relation->Result(true); in Identical()
35 relation->Result(true); in AssignmentTarget()
/arkcompiler/toolchain/tooling/
Ddispatcher.cpp45 Result ret; in DispatchRequest()
48 if (ret != Result::SUCCESS) { in DispatchRequest()
57 if (ret != Result::SUCCESS) { in DispatchRequest()
77 if (ret == Result::NOT_EXIST) { in DispatchRequest()
80 if (ret == Result::TYPE_ERROR) { in DispatchRequest()

12