Lines Matching refs:metaMethod
117 MetaMethod* metaMethod = metaInterface_->methods_[index]; in EmitInterfaceMethods() local
118 EmitInterfaceMethod(metaMethod, stringBuilder, prefix); in EmitInterfaceMethods()
122 void TsCodeEmitter::EmitInterfaceMethod(MetaMethod* metaMethod, StringBuilder& stringBuilder, const… in EmitInterfaceMethod() argument
124 MetaType* returnType = metaComponent_->types_[metaMethod->returnTypeIndex_]; in EmitInterfaceMethod()
126 method.properties_ = metaMethod->properties_; in EmitInterfaceMethod()
128 callbackName.AppendFormat("%sCallback", MethodName(metaMethod->name_).string()); in EmitInterfaceMethod()
138 methodStr.Append(prefix).AppendFormat("%s(", MethodName(metaMethod->name_).string()); in EmitInterfaceMethod()
139 method.name_ = MethodName(metaMethod->name_).string(); in EmitInterfaceMethod()
141 for (int index = 0; index < metaMethod->parameterNumber_; index++) { in EmitInterfaceMethod()
142 MetaParameter* mp = metaMethod->parameters_[index]; in EmitInterfaceMethod()
154 EmitInterfaceMethodLastPara(metaMethod, prefix, method, methodStr, haveOutPara); in EmitInterfaceMethod()
160 void TsCodeEmitter::EmitInterfaceMethodLastPara(MetaMethod* metaMethod, const String& prefix, Metho… in EmitInterfaceMethodLastPara() argument
277 MetaMethod* metaMethod = metaInterface_->methods_[index]; in EmitInterfaceProxyMethodImpls() local
278 EmitInterfaceProxyMethodImpl(metaMethod, index, stringBuilder, prefix); in EmitInterfaceProxyMethodImpls()
285 void TsCodeEmitter::EmitInterfaceProxyMethodImpl(MetaMethod* metaMethod, int methodIndex, StringBui… in EmitInterfaceProxyMethodImpl() argument
288 stringBuilder.Append(prefix).AppendFormat("%s(", MethodName(metaMethod->name_).string()); in EmitInterfaceProxyMethodImpl()
290 for (int index = 0; index < metaMethod->parameterNumber_; index++) { in EmitInterfaceProxyMethodImpl()
291 MetaParameter* mp = metaMethod->parameters_[index]; in EmitInterfaceProxyMethodImpl()
294 if (index != metaMethod->parameterNumber_ - 1) { in EmitInterfaceProxyMethodImpl()
309 EmitInterfaceProxyMethodBody(metaMethod, methodIndex, stringBuilder, prefix); in EmitInterfaceProxyMethodImpl()
312 void TsCodeEmitter::EmitInterfaceProxyMethodBody(MetaMethod* metaMethod, int methodIndex, StringBui… in EmitInterfaceProxyMethodBody() argument
318 …if ((metaMethod->properties_ & METHOD_PROPERTY_ONEWAY) || (metaInterface_->properties_ & METHOD_PR… in EmitInterfaceProxyMethodBody()
325 for (int index = 0; index < metaMethod->parameterNumber_; index++) { in EmitInterfaceProxyMethodBody()
326 MetaParameter* mp = metaMethod->parameters_[index]; in EmitInterfaceProxyMethodBody()
336 THIS_PROXY.c_str(), proxyName_.string(), ConstantName(metaMethod->name_).string()); in EmitInterfaceProxyMethodBody()
338 EmitInterfaceMethodCallback(metaMethod, methodIndex, stringBuilder, prefix, haveOutPara); in EmitInterfaceProxyMethodBody()
349 void TsCodeEmitter::EmitInterfaceMethodCallback(MetaMethod* metaMethod, int methodIndex, StringBuil… in EmitInterfaceMethodCallback() argument
353 MetaType* returnType = metaComponent_->types_[metaMethod->returnTypeIndex_]; in EmitInterfaceMethodCallback()
401 …EmitInterfaceMethodCallbackInner(returnType, metaMethod, methodIndex, stringBuilder, prefix, haveO… in EmitInterfaceMethodCallback()
404 void TsCodeEmitter::EmitInterfaceMethodCallbackInner(MetaType* returnType, MetaMethod* metaMethod, in EmitInterfaceMethodCallbackInner() argument
408 for (int index = 0; index < metaMethod->parameterNumber_; index++) { in EmitInterfaceMethodCallbackInner()
409 MetaParameter* mp = metaMethod->parameters_[index]; in EmitInterfaceMethodCallbackInner()
519 MetaMethod* metaMethod = metaInterface_->methods_[index]; in EmitInterfaceStubMethodImpls() local
520 EmitInterfaceStubMethodImpl(metaMethod, index, stringBuilder, prefix + TAB + TAB); in EmitInterfaceStubMethodImpls()
532 MetaMethod* metaMethod = metaInterface_->methods_[index]; in EmitInterfaceStubMethodImpls() local
533 stringBuilder.Append(prefix).AppendFormat("%s(", MethodName(metaMethod->name_).string()); in EmitInterfaceStubMethodImpls()
534 for (int index = 0; index < metaMethod->parameterNumber_; index++) { in EmitInterfaceStubMethodImpls()
535 MetaParameter* mp = metaMethod->parameters_[index]; in EmitInterfaceStubMethodImpls()
540 if (index != metaMethod->parameterNumber_ - 1) { in EmitInterfaceStubMethodImpls()
555 void TsCodeEmitter::EmitInterfaceStubMethodImpl(MetaMethod* metaMethod, int methodIndex, StringBuil… in EmitInterfaceStubMethodImpl() argument
560 ConstantName(metaMethod->name_).string()); in EmitInterfaceStubMethodImpl()
561 for (int index = 0; index < metaMethod->parameterNumber_; index++) { in EmitInterfaceStubMethodImpl()
562 MetaParameter* mp = metaMethod->parameters_[index]; in EmitInterfaceStubMethodImpl()
573 .AppendFormat("this.%s(", MethodName(metaMethod->name_).string()); in EmitInterfaceStubMethodImpl()
575 for (int index = 0; index < metaMethod->parameterNumber_; index++) { in EmitInterfaceStubMethodImpl()
576 MetaParameter* mp = metaMethod->parameters_[index]; in EmitInterfaceStubMethodImpl()
579 if (index != metaMethod->parameterNumber_ - 1) { in EmitInterfaceStubMethodImpl()
591 EmitInterfaceStubMethodPromiseImpl(metaMethod, methodIndex, stringBuilder, prefix, haveOutPara); in EmitInterfaceStubMethodImpl()
599 …MetaMethod* metaMethod, int methodIndex, StringBuilder& stringBuilder, const String& prefix, bool … in EmitInterfaceStubMethodPromiseImpl() argument
625 MetaType* returnType = metaComponent_->types_[metaMethod->returnTypeIndex_]; in EmitInterfaceStubMethodPromiseImpl()
630 for (int index = 0; index < metaMethod->parameterNumber_; index++) { in EmitInterfaceStubMethodPromiseImpl()
631 MetaParameter* mp = metaMethod->parameters_[index]; in EmitInterfaceStubMethodPromiseImpl()
650 MetaMethod* metaMethod = metaInterface_->methods_[index]; in EmitInterfaceMethodCommands() local
652 ConstantName(metaMethod->name_).string(), index + 1); in EmitInterfaceMethodCommands()
1157 MetaMethod* metaMethod = metaInterface_->methods_[index]; in CheckInterfaceType() local
1158 MetaType* returnType = metaComponent_->types_[metaMethod->returnTypeIndex_]; in CheckInterfaceType()
1164 for (int index = 0; index < metaMethod->parameterNumber_; index++) { in CheckInterfaceType()
1165 MetaParameter* mp = metaMethod->parameters_[index]; in CheckInterfaceType()