Lines Matching refs:mm

221             MetaMethod* mm = metaInterface_->methods_[i];  in EmitInterfaceMethods()  local
222 EmitInterfaceMethod(mm, sb, prefix); in EmitInterfaceMethods()
230 void CppCodeEmitter::EmitInterfaceMethod(MetaMethod* mm, StringBuilder& sb, const String& prefix) in EmitInterfaceMethod() argument
232 MetaType* returnType = metaComponent_->types_[mm->returnTypeIndex_]; in EmitInterfaceMethod()
233 if (mm->parameterNumber_ == 0 && returnType->kind_ == TypeKind::Void) { in EmitInterfaceMethod()
234 sb.Append(prefix).AppendFormat("virtual ErrCode %s() = 0;\n", mm->name_); in EmitInterfaceMethod()
236 sb.Append(prefix).AppendFormat("virtual ErrCode %s(\n", mm->name_); in EmitInterfaceMethod()
237 for (int i = 0; i < mm->parameterNumber_; i++) { in EmitInterfaceMethod()
238 MetaParameter* mp = mm->parameters_[i]; in EmitInterfaceMethod()
240 if (i != mm->parameterNumber_ - 1 || returnType->kind_ != TypeKind::Void) { in EmitInterfaceMethod()
359 MetaMethod* mm = metaInterface_->methods_[i]; in EmitInterfaceProxyAddCacheAbleAPI() local
360 if (mm->cacheable_ == false) { in EmitInterfaceProxyAddCacheAbleAPI()
363 if (mm->cacheabletime_ != 0) { in EmitInterfaceProxyAddCacheAbleAPI()
366 ConstantName(mm->name_).string(), mm->cacheabletime_); in EmitInterfaceProxyAddCacheAbleAPI()
370 ConstantName(mm->name_).string()); in EmitInterfaceProxyAddCacheAbleAPI()
390 MetaMethod* mm = metaInterface_->methods_[i]; in EmitInterfaceProxyUnRegisterDeathRecipient() local
391 if (mm->cacheable_) { in EmitInterfaceProxyUnRegisterDeathRecipient()
394 ConstantName(mm->name_).string()); in EmitInterfaceProxyUnRegisterDeathRecipient()
420 MetaMethod* mm = metaInterface_->methods_[i]; in EmitInterfaceProxyMethodDecls() local
421 EmitInterfaceProxyMethodDecl(mm, sb, prefix); in EmitInterfaceProxyMethodDecls()
429 void CppCodeEmitter::EmitInterfaceProxyMethodDecl(MetaMethod* mm, StringBuilder& sb, const String& … in EmitInterfaceProxyMethodDecl() argument
431 MetaType* returnType = metaComponent_->types_[mm->returnTypeIndex_]; in EmitInterfaceProxyMethodDecl()
432 if (mm->parameterNumber_ == 0 && returnType->kind_ == TypeKind::Void) { in EmitInterfaceProxyMethodDecl()
433 sb.Append(prefix).AppendFormat("ErrCode %s() override;\n", mm->name_); in EmitInterfaceProxyMethodDecl()
435 sb.Append(prefix).AppendFormat("ErrCode %s(\n", mm->name_); in EmitInterfaceProxyMethodDecl()
436 for (int i = 0; i < mm->parameterNumber_; i++) { in EmitInterfaceProxyMethodDecl()
437 MetaParameter* mp = mm->parameters_[i]; in EmitInterfaceProxyMethodDecl()
439 if (i != mm->parameterNumber_ - 1 || returnType->kind_ != TypeKind::Void) { in EmitInterfaceProxyMethodDecl()
518 MetaMethod* mm = metaInterface_->methods_[i]; in EmitInterfaceProxyMethodImpls() local
519 EmitInterfaceProxyMethodImpl(mm, sb, prefix); in EmitInterfaceProxyMethodImpls()
527 void CppCodeEmitter::EmitInterfaceProxyMethodImpl(MetaMethod* mm, StringBuilder& sb, const String& … in EmitInterfaceProxyMethodImpl() argument
529 MetaType* returnType = metaComponent_->types_[mm->returnTypeIndex_]; in EmitInterfaceProxyMethodImpl()
530 if (mm->parameterNumber_ == 0 && returnType->kind_ == TypeKind::Void) { in EmitInterfaceProxyMethodImpl()
531 sb.Append(prefix).AppendFormat("ErrCode %s::%s()\n", proxyName_.string(), mm->name_); in EmitInterfaceProxyMethodImpl()
533 sb.Append(prefix).AppendFormat("ErrCode %s::%s(\n", proxyName_.string(), mm->name_); in EmitInterfaceProxyMethodImpl()
534 for (int i = 0; i < mm->parameterNumber_; i++) { in EmitInterfaceProxyMethodImpl()
535 MetaParameter* mp = mm->parameters_[i]; in EmitInterfaceProxyMethodImpl()
537 if (i != mm->parameterNumber_ - 1 || returnType->kind_ != TypeKind::Void) { in EmitInterfaceProxyMethodImpl()
546 EmitInterfaceProxyMethodBody(mm, sb, prefix); in EmitInterfaceProxyMethodImpl()
549 void CppCodeEmitter::EmitInterfaceProxyMethodPreSendRequest(MetaMethod* mm, StringBuilder& sb, cons… in EmitInterfaceProxyMethodPreSendRequest() argument
551 if ((mm->cacheable_ == true) && ((mm->properties_ & METHOD_PROPERTY_ONEWAY) == 0)) { in EmitInterfaceProxyMethodPreSendRequest()
555 ConstantName(mm->name_).string()); in EmitInterfaceProxyMethodPreSendRequest()
559 EmitInterfaceProxyMethodReply(mm, sb, prefix + TAB); in EmitInterfaceProxyMethodPreSendRequest()
565 void CppCodeEmitter::EmitInterfaceProxyMethodPostSendRequest(MetaMethod* mm, StringBuilder& sb, con… in EmitInterfaceProxyMethodPostSendRequest() argument
569 ConstantName(mm->name_).string()); in EmitInterfaceProxyMethodPostSendRequest()
572 void CppCodeEmitter::EmitInterfaceProxyMethodBody(MetaMethod* mm, StringBuilder& sb, const String& … in EmitInterfaceProxyMethodBody() argument
582 …(mm->properties_ & METHOD_PROPERTY_ONEWAY) != 0 ? "MessageOption::TF_ASYNC" : "MessageOption::TF_S… in EmitInterfaceProxyMethodBody()
592 for (int i = 0; i < mm->parameterNumber_; i++) { in EmitInterfaceProxyMethodBody()
593 MetaParameter* mp = mm->parameters_[i]; in EmitInterfaceProxyMethodBody()
598 EmitInterfaceProxyMethodPreSendRequest(mm, sb, prefix); in EmitInterfaceProxyMethodBody()
607 ConstantName(mm->name_).string()); in EmitInterfaceProxyMethodBody()
614 EmitInterfaceProxyMethodRetValue(mm, sb, prefix); in EmitInterfaceProxyMethodBody()
629 void CppCodeEmitter::EmitInterfaceProxyMethodReply(MetaMethod* mm, StringBuilder& sb, const String&… in EmitInterfaceProxyMethodReply() argument
631 for (int i = 0; i < mm->parameterNumber_; i++) { in EmitInterfaceProxyMethodReply()
632 MetaParameter* mp = mm->parameters_[i]; in EmitInterfaceProxyMethodReply()
637 MetaType* returnType = metaComponent_->types_[mm->returnTypeIndex_]; in EmitInterfaceProxyMethodReply()
643 void CppCodeEmitter::EmitInterfaceProxyMethodRetValue(MetaMethod* mm, StringBuilder& sb, const Stri… in EmitInterfaceProxyMethodRetValue() argument
645 if ((mm->properties_ & METHOD_PROPERTY_ONEWAY) == 0) { in EmitInterfaceProxyMethodRetValue()
648 if (mm->cacheable_ == true) { in EmitInterfaceProxyMethodRetValue()
649 EmitInterfaceProxyMethodPostSendRequest(mm, sb, prefix); in EmitInterfaceProxyMethodRetValue()
651 EmitInterfaceProxyMethodReply(mm, sb, prefix); in EmitInterfaceProxyMethodRetValue()
777 MetaMethod* mm = metaInterface_->methods_[i]; in EmitInterfaceStubMethodImpls() local
778 EmitInterfaceStubMethodImpl(mm, sb, prefix + TAB + TAB); in EmitInterfaceStubMethodImpls()
788 void CppCodeEmitter::EmitInterfaceStubMethodImplReturn(MetaMethod* mm, in EmitInterfaceStubMethodImplReturn() argument
799 if (mm->parameterNumber_ == 0 && returnType->kind_ == TypeKind::Void) { in EmitInterfaceStubMethodImplReturn()
800 sb.Append(prefix + TAB).AppendFormat("ErrCode errCode = %s();\n", mm->name_); in EmitInterfaceStubMethodImplReturn()
802 sb.Append(prefix + TAB).AppendFormat("ErrCode errCode = %s(", mm->name_); in EmitInterfaceStubMethodImplReturn()
803 for (int i = 0; i < mm->parameterNumber_; i++) { in EmitInterfaceStubMethodImplReturn()
804 MetaParameter* mp = mm->parameters_[i]; in EmitInterfaceStubMethodImplReturn()
817 if (i != mm->parameterNumber_ - 1 || returnType->kind_ != TypeKind::Void) { in EmitInterfaceStubMethodImplReturn()
824 sb.AppendFormat(");\n", mm->name_); in EmitInterfaceStubMethodImplReturn()
828 void CppCodeEmitter::EmitInterfaceStubMethodImpl(MetaMethod* mm, StringBuilder& sb, const String& p… in EmitInterfaceStubMethodImpl() argument
830 sb.Append(prefix).AppendFormat("case COMMAND_%s: {\n", ConstantName(mm->name_).string()); in EmitInterfaceStubMethodImpl()
831 for (int i = 0; i < mm->parameterNumber_; i++) { in EmitInterfaceStubMethodImpl()
832 MetaParameter* mp = mm->parameters_[i]; in EmitInterfaceStubMethodImpl()
841 MetaType* returnType = metaComponent_->types_[mm->returnTypeIndex_]; in EmitInterfaceStubMethodImpl()
845 EmitInterfaceStubMethodImplReturn(mm, sb, prefix, returnType); in EmitInterfaceStubMethodImpl()
854 for (int i = 0; i < mm->parameterNumber_; i++) { in EmitInterfaceStubMethodImpl()
855 MetaParameter* mp = mm->parameters_[i]; in EmitInterfaceStubMethodImpl()
862 for (int i = 0; i < mm->parameterNumber_; i++) { in EmitInterfaceStubMethodImpl()
863 MetaParameter* mp = mm->parameters_[i]; in EmitInterfaceStubMethodImpl()
880 MetaMethod* mm = metaInterface_->methods_[i]; in EmitInterfaceMethodCommands() local
882 ConstantName(mm->name_).string(), i); in EmitInterfaceMethodCommands()