string TarsAnalyzer::tostrVector(const VectorPtr &pPtr) { //数组类型 if(pPtr->isArray()) { return tostr(pPtr->getTypePtr()); } //指针类型 if(pPtr->isPointer()) { return tostr(pPtr->getTypePtr())+" *"; } string s = Builtin::builtinTable[Builtin::KindVector] + string("<") + tostr(pPtr->getTypePtr()); if(MapPtr::dynamicCast(pPtr->getTypePtr()) || VectorPtr::dynamicCast(pPtr->getTypePtr())) { s += " >"; } else { s += ">"; } return s; }