Lines Matching defs:mt

451     MetaType* mt = metaComponent_->types_[mp->typeIndex_];
453 EmitWriteVariable(parcelName, name, mt, stringBuilder, prefix);
459 MetaType* mt = metaComponent_->types_[mp->typeIndex_];
461 EmitReadOutVariable(parcelName, name, mt, stringBuilder, prefix);
564 MetaType* mt = metaComponent_->types_[mp->typeIndex_];
565 EmitReadVariable("data", SuffixAdded(mp->name_), mt, ATTR_IN, stringBuilder, prefix + TAB);
661 void TsCodeEmitter::EmitWriteVariable(const String& parcelName, const std::string& name, MetaType* mt,
664 switch (mt->kind_) {
684 EmitWriteVariableObject(parcelName, name, mt, stringBuilder, prefix);
689 void TsCodeEmitter::EmitWriteVariableObject(const String& parcelName, const std::string& name, MetaType* mt,
692 switch (mt->kind_) {
697 if (EmitType(mt).Equals("IRemoteObject")) {
707 name.c_str(), StubName(EmitType(mt)).string());
710 MetaType* innerType = metaComponent_->types_[mt->nestedTypeIndexes_[0]];
719 MetaType* keyType = metaComponent_->types_[mt->nestedTypeIndexes_[0]];
720 MetaType* valueType = metaComponent_->types_[mt->nestedTypeIndexes_[1]];
729 MetaType* innerType = metaComponent_->types_[mt->nestedTypeIndexes_[0]];
738 void TsCodeEmitter::EmitWriteArrayVariable(const String& parcelName, const std::string& name, MetaType* mt,
742 switch (mt->kind_) {
773 String typeName = EmitType(mt).EndsWith("]") ?
774 (EmitType(mt).Substring(0, EmitType(mt).GetLength() - 2)) : EmitType(mt);
791 void TsCodeEmitter::EmitReadVariable(const String& parcelName, const std::string& name, MetaType* mt,
796 switch (mt->kind_) {
817 EmitReadVariableObject(parcelName, name, mt, attributes, stringBuilder, prefix);
822 void TsCodeEmitter::EmitReadVariableObject(const String& parcelName, const std::string& name, MetaType* mt,
825 switch (mt->kind_) {
830 if ((attributes & ATTR_OUT) == 0 && EmitType(mt).Equals("IRemoteObject")) {
836 stringBuilder.Append(prefix).AppendFormat("let %s = new %s();\n", name.c_str(), EmitType(mt).string());
851 MetaType* keyType = metaComponent_->types_[mt->nestedTypeIndexes_[0]];
852 MetaType* valueType = metaComponent_->types_[mt->nestedTypeIndexes_[1]];
861 EmitReadOutArrayVariable(parcelName, name, mt, stringBuilder, prefix);
863 EmitReadArrayVariable(parcelName, name, mt, attributes, stringBuilder, prefix);
872 void TsCodeEmitter::EmitReadArrayVariable(const String& parcelName, const std::string& name, MetaType* mt,
875 MetaType* innerType = metaComponent_->types_[mt->nestedTypeIndexes_[0]];
890 String typeName = EmitType(mt).EndsWith("]") ?
891 (EmitType(mt).Substring(0, EmitType(mt).GetLength() - 2)) : EmitType(mt);
911 void TsCodeEmitter::EmitReadOutArrayVariable(const String& parcelName, const std::string& name, MetaType* mt,
915 MetaType* innerType = metaComponent_->types_[mt->nestedTypeIndexes_[0]];
932 String typeName = EmitType(mt).EndsWith("]") ?
933 (EmitType(mt).Substring(0, EmitType(mt).GetLength() - 2)) : EmitType(mt);
951 void TsCodeEmitter::EmitReadOutVariable(const String& parcelName, const std::string& name, MetaType* mt,
955 switch (mt->kind_) {
979 EmitReadOutVariableObject(parcelName, name, mt, stringBuilder, prefix);
984 void TsCodeEmitter::EmitReadOutVariableObject(const String& parcelName, const std::string& name, MetaType* mt,
987 switch (mt->kind_) {
992 if (EmitType(mt).Equals("IRemoteObject")) {
997 stringBuilder.Append(prefix).AppendFormat("let %s = new %s();\n", name.c_str(), EmitType(mt).string());
1008 MetaType* innerType = metaComponent_->types_[mt->nestedTypeIndexes_[0]];
1019 MetaType* keyType = metaComponent_->types_[mt->nestedTypeIndexes_[0]];
1020 MetaType* valueType = metaComponent_->types_[mt->nestedTypeIndexes_[1]];
1028 EmitReadOutArrayVariable(parcelName, name, mt, stringBuilder, prefix);
1036 String TsCodeEmitter::EmitType(MetaType* mt)
1038 switch (mt->kind_) {
1058 MetaSequenceable* mp = metaComponent_->sequenceables_[mt->index_];
1062 MetaInterface* mi = metaComponent_->interfaces_[mt->index_];
1066 MetaType* keyType = metaComponent_->types_[mt->nestedTypeIndexes_[0]];
1067 MetaType* valueType = metaComponent_->types_[mt->nestedTypeIndexes_[1]];
1074 MetaType* elementType = metaComponent_->types_[mt->nestedTypeIndexes_[0]];