/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | conditionalTypesSimplifyWhenTrivial.ts | 23 AssertType(<Params>( params: Pick<Params, Exclude<keyof Params, never>>,): Params => params, "<P… 25 params: Pick<Params, Exclude<keyof Params, never>>, 26 AssertType(params, "Pick<Params, Exclude<keyof Params, never>>"); 28 ): Params => params; 29 AssertType(params, "Pick<Params, Exclude<keyof Params, never>>"); 44 AssertType(<Params>( params: Pick<Params, Extract<keyof Params, keyof Params>>,): Params => para… 46 params: Pick<Params, Extract<keyof Params, keyof Params>>, 47 AssertType(params, "Pick<Params, Extract<keyof Params, keyof Params>>"); 49 ): Params => params; 50 AssertType(params, "Pick<Params, Extract<keyof Params, keyof Params>>"); [all …]
|
D | genericObjectSpreadResultInSwitch.ts | 25 const getType = <P extends Params>(params: P) => { 27 AssertType(params, "P"); 28 AssertType(<P extends Params>(params: P) => { const { // Omit foo, ...rest … 38 } = params; 39 AssertType(params, "Params"); 46 declare const params: Params; constant 47 AssertType(params, "Params"); 49 switch (params.tag) { 53 const result = getType(params).type; 55 AssertType(getType(params).type, "number"); [all …]
|
D | strictNullNotNullIndexTypeShouldWork.ts | 22 params?: { name: string; }; 29 this.attrs.params!.name; 30 AssertType(this.attrs.params!.name, "string"); 31 AssertType(this.attrs.params!, "NonNullable<T["params"]>"); 32 AssertType(this.attrs.params, "union"); 61 AssertType(this.attrs.params!, "NonNullable<T["params"]>"); 62 AssertType(this.attrs.params, "union"); 65 …return this.attrs.params!; // Return type should maintain relationship with `T` after being not-nu…
|
/arkcompiler/toolchain/tooling/test/ |
D | debugger_events_test.cpp | 95 std::unique_ptr<PtJson> params; in HWTEST_F_L0() local 96 ASSERT_EQ(json->GetObject("params", ¶ms), 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", ¶ms), Result::SUCCESS); in HWTEST_F_L0() 123 std::unique_ptr<PtJson> params; in HWTEST_F_L0() local 124 ASSERT_EQ(json->GetObject("params", ¶ms), Result::SUCCESS); in HWTEST_F_L0() 127 ASSERT_EQ(params->GetInt64("nativeAddress", &nativeAddress), Result::SUCCESS); in HWTEST_F_L0() 138 std::unique_ptr<PtJson> params; in HWTEST_F_L0() local 139 ASSERT_EQ(json->GetObject("params", ¶ms), Result::SUCCESS); in HWTEST_F_L0() [all …]
|
D | debugger_params_test.cpp | 75 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{}})"; in HWTEST_F_L0() 81 … msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"maxScriptsCacheSize":100}})"; in HWTEST_F_L0() 93 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{}})"; in HWTEST_F_L0() 99 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"unknownKey":100}})"; in HWTEST_F_L0() 105 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"samplingInterval":true}})"; in HWTEST_F_L0() 110 … msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"samplingInterval":"Test"}})"; in HWTEST_F_L0() 115 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"samplingInterval":1000}})"; in HWTEST_F_L0() 127 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{}})"; in HWTEST_F_L0() 133 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"unknownKey":100}})"; in HWTEST_F_L0() 139 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"trackAllocations":10}})"; in HWTEST_F_L0() [all …]
|
D | heapprofiler_impl_test.cpp | 93 GetHeapObjectIdParams params; in HWTEST_F_L0() local 95 DispatchResponse response = heapProfiler->GetHeapObjectId(params, &objectId); in HWTEST_F_L0() 104 std::unique_ptr<GetObjectByHeapObjectIdParams> params; in HWTEST_F_L0() local 106 DispatchResponse response = heapProfiler->GetObjectByHeapObjectId(*params, &remoteObjectResult); in HWTEST_F_L0() 125 StartSamplingParams params; in HWTEST_F_L0() local 126 DispatchResponse response = heapProfiler->StartSampling(params); in HWTEST_F_L0() 144 StopTrackingHeapObjectsParams params; in HWTEST_F_L0() local 145 DispatchResponse response = heapProfiler->TakeHeapSnapshot(params); in HWTEST_F_L0() 158 std::string msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{}})"; in HWTEST_F_L0() 162 msg = std::string() + R"({"id":0,"method":"Debugger.disable","params":{}})"; in HWTEST_F_L0() [all …]
|
D | debugger_types_test.cpp | 85 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{}})"; in HWTEST_F_L0() 90 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"unknownKey":100}})"; in HWTEST_F_L0() 95 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"type":100}})"; in HWTEST_F_L0() 100 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"type":100}})"; in HWTEST_F_L0() 105 …msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"type":")" + ObjectType::Objec… in HWTEST_F_L0() 111 …msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"type":")" + ObjectType::Objec… in HWTEST_F_L0() 117 …msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"type":")" + ObjectType::Objec… in HWTEST_F_L0() 123 …msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"type":")" + ObjectType::Objec… in HWTEST_F_L0() 132 …msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"type":")" + ObjectType::Objec… in HWTEST_F_L0() 138 …msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"type":")" + ObjectType::Objec… in HWTEST_F_L0() [all …]
|
D | dispatcher_test.cpp | 57 msg = std::string() + R"({"id":0,"method":"Tracing.xxx","params":{}})"; in HWTEST_F_L0() 65 msg = std::string() + R"({"method":"Tracing","params":{}})"; in HWTEST_F_L0() 68 msg = std::string() + R"({"id":0,"params":{}})"; in HWTEST_F_L0() 72 msg = std::string() + R"({"id":0,"method":"Tracing","params":{}})"; in HWTEST_F_L0() 76 msg = std::string() + R"({"id":0,"method":".Tracing","params":{}})"; in HWTEST_F_L0() 80 msg = std::string() + R"({"id":0,"method":"Tracing.","params":{}})"; in HWTEST_F_L0() 84 msg = std::string() + R"({"id":0,"method":"Tracing.end", "params":1})"; in HWTEST_F_L0() 96 std::string msg = std::string() + R"({"id":0,"method":"Tracing.end","params":{}})"; in HWTEST_F_L0() 104 std::string msg = std::string() + R"({"id":0,"method":"Tracing.end","params":{}})"; in HWTEST_F_L0() 133 msg = std::string() + R"({"id":0,"method":"Tracing.end","params":{}})"; in HWTEST_F_L0() [all …]
|
D | debugger_impl_test.cpp | 97 "params":{ in HWTEST_F_L0() 104 …_STREQ(outStrForCallbackCheck.c_str(), R"({"id":0,"result":{"code":1,"message":"wrong params"}})"); in HWTEST_F_L0() 127 "params":{ in HWTEST_F_L0() 186 "params":{} in HWTEST_F_L0() 191 …_STREQ(outStrForCallbackCheck.c_str(), R"({"id":0,"result":{"code":1,"message":"wrong params"}})"); in HWTEST_F_L0() 214 "params":{ in HWTEST_F_L0() 245 "params":{ in HWTEST_F_L0() 276 "params":{} in HWTEST_F_L0() 281 …_STREQ(outStrForCallbackCheck.c_str(), R"({"id":0,"result":{"code":1,"message":"wrong params"}})"); in HWTEST_F_L0() 304 "params":{ in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | call_signature.cpp | 44 std::array<VariableType, 3> params = { \ 49 callSign->SetParameters(params.data()); \ 154 std::array<VariableType, 3> params = { in DEF_CALL_SIGNATURE() local 159 callSign->SetParameters(params.data()); in DEF_CALL_SIGNATURE() 172 std::array<VariableType, 2> params = { \ 176 callSign->SetParameters(params.data()); \ 210 std::array<VariableType, 2> params = { in DEF_CALL_SIGNATURE() local 214 callSign->SetParameters(params.data()); in DEF_CALL_SIGNATURE() 224 std::array<VariableType, 6> params = { in DEF_CALL_SIGNATURE() local 232 callSign->SetParameters(params.data()); in DEF_CALL_SIGNATURE() [all …]
|
D | test_stubs_signature.cpp | 25 std::array<VariableType, 7> params = { // 7 : 7 input parameters in DEF_CALL_SIGNATURE() local 34 callSign->SetParameters(params.data()); in DEF_CALL_SIGNATURE() 44 std::array<VariableType, 7> params = { // 7 : 7 input parameters in DEF_CALL_SIGNATURE() local 53 callSign->SetParameters(params.data()); in DEF_CALL_SIGNATURE() 63 std::array<VariableType, 7> params = { // 7 : 7 input parameters in DEF_CALL_SIGNATURE() local 72 callSign->SetParameters(params.data()); in DEF_CALL_SIGNATURE() 82 std::array<VariableType, 7> params = { // 7 : 7 input parameters in DEF_CALL_SIGNATURE() local 91 callSign->SetParameters(params.data()); in DEF_CALL_SIGNATURE() 101 std::array<VariableType, 7> params = { // 7 : 7 input parameters in DEF_CALL_SIGNATURE() local 110 callSign->SetParameters(params.data()); in DEF_CALL_SIGNATURE() [all …]
|
/arkcompiler/toolchain/tooling/base/ |
D | pt_params.cpp | 19 std::unique_ptr<EnableParams> EnableParams::Create(const PtJson ¶ms) in Create() argument 26 ret = params.GetDouble("maxScriptsCacheSize", &maxScriptsCacheSize); in Create() 41 std::unique_ptr<EvaluateOnCallFrameParams> EvaluateOnCallFrameParams::Create(const PtJson ¶ms) in Create() argument 48 ret = params.GetString("callFrameId", &callFrameId); in Create() 55 ret = params.GetString("expression", &expression); in Create() 62 ret = params.GetString("objectGroup", &objectGroup); in Create() 69 ret = params.GetBool("includeCommandLineAPI", &includeCommandLineAPI); in Create() 76 ret = params.GetBool("silent", &silent); in Create() 83 ret = params.GetBool("returnByValue", &returnByValue); in Create() 90 ret = params.GetBool("generatePreview", &generatePreview); in Create() [all …]
|
D | pt_types.cpp | 931 std::unique_ptr<RemoteObject> RemoteObject::Create(const PtJson ¶ms) in Create() argument 938 ret = params.GetString("type", &type); in Create() 950 ret = params.GetString("subtype", &subType); in Create() 962 ret = params.GetString("className", &className); in Create() 970 ret = params.GetString("unserializableValue", &unserializableValue); in Create() 978 ret = params.GetString("description", &description); in Create() 986 ret = params.GetString("objectId", &objectId); in Create() 1025 std::unique_ptr<ExceptionDetails> ExceptionDetails::Create(const PtJson ¶ms) in Create() argument 1032 ret = params.GetInt("exceptionId", &exceptionId); in Create() 1040 ret = params.GetString("text", &text); in Create() [all …]
|
D | pt_params.h | 41 static std::unique_ptr<EnableParams> Create(const PtJson ¶ms); 65 static std::unique_ptr<EvaluateOnCallFrameParams> Create(const PtJson ¶ms); 96 static std::unique_ptr<GetPossibleBreakpointsParams> Create(const PtJson ¶ms); 140 static std::unique_ptr<GetScriptSourceParams> Create(const PtJson ¶ms); 159 static std::unique_ptr<RemoveBreakpointParams> Create(const PtJson ¶ms); 178 static std::unique_ptr<ResumeParams> Create(const PtJson ¶ms); 202 static std::unique_ptr<SetAsyncCallStackDepthParams> Create(const PtJson ¶ms); 220 static std::unique_ptr<SetBlackboxPatternsParams> Create(const PtJson ¶ms); 239 static std::unique_ptr<SetBreakpointByUrlParams> Create(const PtJson ¶ms); 316 static std::unique_ptr<GetPossibleAndSetBreakpointParams> Create(const PtJson ¶ms); [all …]
|
/arkcompiler/runtime_core/assembler/tests/ |
D | mangling_tests.cpp | 25 std::vector<Function::Parameter> params; in TEST() local 27 params.emplace_back(Type {"type1", 0}, language); in TEST() 28 params.emplace_back(Type {"type2", 0}, language); in TEST() 29 params.emplace_back(Type {"type3", 0}, language); in TEST() 34 …ASSERT_EQ(MangleFunctionName(name, std::move(params), return_type), "Asm.main:type1;type2;type3;ty… in TEST() 45 std::vector<Function::Parameter> params; in TEST() local 47 params.emplace_back(Type {"type1", 0}, language); in TEST() 48 params.emplace_back(Type {"type2", 0}, language); in TEST() 49 params.emplace_back(Type {"type3", 0}, language); in TEST() 52 … ASSERT_EQ(GetFunctionSignatureFromName(name, std::move(params)), "Asm.main:(type1,type2,type3)"); in TEST()
|
D | assembler_mangling_test.cpp | 37 std::vector<Function::Parameter> params; variable 39 params.emplace_back(Type {"type1", 0}, language); 40 params.emplace_back(Type {"type2", 0}, language); 41 params.emplace_back(Type {"type3", 0}, language); 46 std::string ret = MangleFunctionName(name, std::move(params), return_type); 71 std::vector<Function::Parameter> params; variable 73 params.emplace_back(Type {"type1", 0}, language); 74 params.emplace_back(Type {"type2", 0}, language); 75 params.emplace_back(Type {"type3", 0}, language); 78 std::string ret = GetFunctionSignatureFromName(name, std::move(params));
|
/arkcompiler/toolchain/tooling/agent/ |
D | heapprofiler_impl.cpp | 50 …std::unique_ptr<AddInspectedHeapObjectParams> params = AddInspectedHeapObjectParams::Create(reques… in AddInspectedHeapObject() local 51 if (params == nullptr) { in AddInspectedHeapObject() 55 DispatchResponse response = heapprofiler_->AddInspectedHeapObject(*params); in AddInspectedHeapObject() 79 …std::unique_ptr<GetHeapObjectIdParams> params = GetHeapObjectIdParams::Create(request.GetParams()); in GetHeapObjectId() local 80 if (params == nullptr) { in GetHeapObjectId() 86 DispatchResponse response = heapprofiler_->GetHeapObjectId(*params, &objectId); in GetHeapObjectId() 93 …std::unique_ptr<GetObjectByHeapObjectIdParams> params = GetObjectByHeapObjectIdParams::Create(requ… in GetObjectByHeapObjectId() local 94 if (params == nullptr) { in GetObjectByHeapObjectId() 100 … DispatchResponse response = heapprofiler_->GetObjectByHeapObjectId(*params, &remoteObjectResult); in GetObjectByHeapObjectId() 126 std::unique_ptr<StartSamplingParams> params = StartSamplingParams::Create(request.GetParams()); in StartSampling() local [all …]
|
D | debugger_impl.h | 49 DispatchResponse Enable(const EnableParams ¶ms, UniqueDebuggerId *id); 51 DispatchResponse EvaluateOnCallFrame(const EvaluateOnCallFrameParams ¶ms, 53 DispatchResponse GetPossibleBreakpoints(const GetPossibleBreakpointsParams ¶ms, 55 DispatchResponse GetScriptSource(const GetScriptSourceParams ¶ms, std::string *source); 57 DispatchResponse RemoveBreakpoint(const RemoveBreakpointParams ¶ms); 58 DispatchResponse Resume(const ResumeParams ¶ms); 60 DispatchResponse SetBreakpointByUrl(const SetBreakpointByUrlParams ¶ms, std::string *outId, 62 … DispatchResponse GetPossibleAndSetBreakpointByUrl(const GetPossibleAndSetBreakpointParams ¶ms, 64 DispatchResponse SetPauseOnExceptions(const SetPauseOnExceptionsParams ¶ms); 65 DispatchResponse StepInto(const StepIntoParams ¶ms); [all …]
|
D | debugger_impl.cpp | 314 std::unique_ptr<EnableParams> params = EnableParams::Create(request.GetParams()); in Enable() local 315 if (params == nullptr) { in Enable() 321 DispatchResponse response = debugger_->Enable(*params, &id); in Enable() 335 …std::unique_ptr<EvaluateOnCallFrameParams> params = EvaluateOnCallFrameParams::Create(request.GetP… in EvaluateOnCallFrame() local 336 if (params == nullptr) { in EvaluateOnCallFrame() 341 DispatchResponse response = debugger_->EvaluateOnCallFrame(*params, &result1); in EvaluateOnCallFrame() 353 …std::unique_ptr<GetPossibleBreakpointsParams> params = GetPossibleBreakpointsParams::Create(reques… in GetPossibleBreakpoints() local 354 if (params == nullptr) { in GetPossibleBreakpoints() 359 DispatchResponse response = debugger_->GetPossibleBreakpoints(*params, &locations); in GetPossibleBreakpoints() 366 …std::unique_ptr<GetScriptSourceParams> params = GetScriptSourceParams::Create(request.GetParams()); in GetScriptSource() local [all …]
|
D | profiler_impl.cpp | 84 …std::unique_ptr<SetSamplingIntervalParams> params = SetSamplingIntervalParams::Create(request.GetP… in SetSamplingInterval() local 85 if (params == nullptr) { in SetSamplingInterval() 89 DispatchResponse response = profiler_->SetSamplingInterval(*params); in SetSamplingInterval() 113 …std::unique_ptr<StartPreciseCoverageParams> params = StartPreciseCoverageParams::Create(request.Ge… in StartPreciseCoverage() local 114 if (params == nullptr) { in StartPreciseCoverage() 118 DispatchResponse response = profiler_->StartPreciseCoverage(*params); in StartPreciseCoverage() 182 DispatchResponse ProfilerImpl::SetSamplingInterval(const SetSamplingIntervalParams ¶ms) in SetSamplingInterval() argument 184 panda::DFXJSNApi::SetCpuSamplingInterval(vm_, params.GetInterval()); in SetSamplingInterval() 203 …ponse ProfilerImpl::StartPreciseCoverage([[maybe_unused]] const StartPreciseCoverageParams ¶ms) in StartPreciseCoverage() argument
|
D | heapprofiler_impl.h | 42 DispatchResponse AddInspectedHeapObject(const AddInspectedHeapObjectParams ¶ms); 46 …DispatchResponse GetHeapObjectId(const GetHeapObjectIdParams ¶ms, HeapSnapshotObjectId *object… 47 DispatchResponse GetObjectByHeapObjectId(const GetObjectByHeapObjectIdParams ¶ms, 50 DispatchResponse StartSampling(const StartSamplingParams ¶ms); 51 DispatchResponse StartTrackingHeapObjects(const StartTrackingHeapObjectsParams ¶ms); 54 DispatchResponse StopTrackingHeapObjects(const StopTrackingHeapObjectsParams ¶ms); 56 DispatchResponse TakeHeapSnapshot(const StopTrackingHeapObjectsParams ¶ms);
|
D | tracing_impl.cpp | 66 std::unique_ptr<RequestMemoryDumpParams> params = in RequestMemoryDump() local 70 DispatchResponse response = tracing_->RequestMemoryDump(std::move(params), dumpGuid, success); in RequestMemoryDump() 76 std::unique_ptr<StartParams> params = in Start() local 78 DispatchResponse response = tracing_->Start(std::move(params)); in Start() 132 …se TracingImpl::RequestMemoryDump([[maybe_unused]] std::unique_ptr<RequestMemoryDumpParams> params, in RequestMemoryDump() argument 138 DispatchResponse TracingImpl::Start([[maybe_unused]] std::unique_ptr<StartParams> params) in Start() argument
|
/arkcompiler/ets_frontend/es2panda/typescript/types/ |
D | signature.h | 31 explicit SignatureInfo(ArenaAllocator *allocator) : params(allocator->Adapter()) {} in SignatureInfo() 33 …SignatureInfo(const SignatureInfo *other, ArenaAllocator *allocator) : params(allocator->Adapter()) in SignatureInfo() 35 for (auto *it : other->params) { in SignatureInfo() 36 params.push_back(it->Copy(allocator, it->Declaration())); in SignatureInfo() 52 ArenaVector<binder::LocalVariable *> params; variable 72 return signatureInfo_->params; in Params() 92 return signatureInfo_->params.size() - signatureInfo_->minArgCount; in OptionalArgCount()
|
D | signature.cpp | 24 for (auto *it : copiedInfo->params) { in Copy() 37 for (auto it = signatureInfo_->params.begin(); it != signatureInfo_->params.end(); it++) { in ToString() 48 if (std::next(it) != signatureInfo_->params.end()) { in ToString() 54 if (!signatureInfo_->params.empty()) { in ToString() 79 signatureInfo_->params.size() != other->Params().size()) { in Identical() 87 for (uint64_t i = 0; i < signatureInfo_->params.size(); i++) { in Identical() 88 … relation->IsIdenticalTo(signatureInfo_->params[i]->TsType(), other->Params()[i]->TsType()); in Identical() 105 (source->Params().size() - source->OptionalArgCount()) > signatureInfo_->params.size()) { in AssignmentTarget()
|
/arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
D | test-new-expression3-expected.txt | 23 "params": [ 93 "params": [], 194 "params": [ 197 "params": [], 200 "params": [ 317 "params": [ 320 "params": [], 323 "params": [
|