Home
last modified time | relevance | path

Searched refs:SuffixAdded (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/foundation/ability/idl_tool/idl_tool_2/codegen/SA/ts/
H A Dsa_ts_client_proxy_code_emitter.cpp139 typeEmitter->EmitTsReadVar("result.reply", SuffixAdded(ERR_CODE).c_str(), sb, prefix + TAB); in EmitInterfaceMethodCallback()
149 sb.Append(prefix).AppendFormat("if (%s != 0) {\n", SuffixAdded(ERR_CODE).c_str()); in EmitInterfaceMethodErrorCallback()
155 SuffixAdded(param->GetName()).c_str()); in EmitInterfaceMethodErrorCallback()
160 "let %s = undefined;\n", SuffixAdded(RETURN_VALUE).c_str()); in EmitInterfaceMethodErrorCallback()
162 sb.Append(prefix).Append(TAB).AppendFormat("callback(%s", SuffixAdded(ERR_CODE).c_str()); in EmitInterfaceMethodErrorCallback()
164 sb.AppendFormat(", %s", SuffixAdded(RETURN_VALUE).c_str()); in EmitInterfaceMethodErrorCallback()
169 sb.AppendFormat(", %s", SuffixAdded(param->GetName()).c_str()); in EmitInterfaceMethodErrorCallback()
187 … typeEmitter->EmitTsReadVar("result.reply", SuffixAdded(param->GetName()), sb, prefix + TAB, in EmitInterfaceMethodCallbackInner()
196 sb.Append(prefix + TAB).AppendFormat("callback(%s", SuffixAdded(ERR_CODE).c_str()); in EmitInterfaceMethodCallbackInner()
198 sb.AppendFormat(", %s", SuffixAdded(RETURN_VALUE).c_str()); in EmitInterfaceMethodCallbackInner()
[all …]
H A Dsa_ts_code_emitter.h38 const std::string SuffixAdded(const std::string &originName) const;
H A Dsa_ts_service_stub_code_emitter.cpp129 …typeEmitter->EmitTsReadVar("data", SuffixAdded(param->GetName()), sb, prefix + TAB, TypeMode::PARA… in EmitInterfaceStubMethodImpl()
140 sb.AppendFormat("%s, ", SuffixAdded(param->GetName()).c_str()); in EmitInterfaceStubMethodImpl()
H A Dsa_ts_code_emitter.cpp82 const std::string SATsCodeEmitter::SuffixAdded(const std::string &originName) const in SuffixAdded() function in OHOS::Idl::SATsCodeEmitter
/ohos5.0/foundation/ability/idl_tool/codegen/
H A Dts_code_emitter.cpp362 "if (%s != 0) {\n", SuffixAdded(ERR_CODE).c_str()); in EmitInterfaceMethodCallback()
366 "let %s = undefined;\n", SuffixAdded( in EmitInterfaceMethodCallback()
372 "let %s = undefined;\n", SuffixAdded(RETURN_VALUE).c_str()); in EmitInterfaceMethodCallback()
375 stringBuilder.AppendFormat("%s", SuffixAdded(ERR_CODE).c_str()); in EmitInterfaceMethodCallback()
380 stringBuilder.AppendFormat(", %s", SuffixAdded(RETURN_VALUE).c_str()); in EmitInterfaceMethodCallback()
420 stringBuilder.AppendFormat("%s", SuffixAdded(ERR_CODE).c_str()); in EmitInterfaceMethodCallbackInner()
423 stringBuilder.AppendFormat(", %s, ", SuffixAdded(RETURN_VALUE).c_str()); in EmitInterfaceMethodCallbackInner()
425 stringBuilder.AppendFormat(", %s", SuffixAdded(RETURN_VALUE).c_str()); in EmitInterfaceMethodCallbackInner()
460 std::string name = SuffixAdded(mp->name_); in EmitReadMethodParameter()
578 stringBuilder.Append(SuffixAdded(mp->name_).c_str()); in EmitInterfaceStubMethodImpl()
[all …]
H A Dts_code_emitter.h171 const std::string SuffixAdded(const String& name);