1 Star 0 Fork 1

reference/PracticeCode

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
method.cpp 467 Bytes
一键复制 编辑 原始数据 按行查看 历史
亦狂亦侠_亦温文 提交于 2016-07-13 18:24 +08:00 . update
#include "method.h"
#include "type.h"
std::string Method::GetDescription(bool showOwnerType) const{
std::stringstream ss;
if (isStatic) ss << "static ";
ss << returnType.ToString() << " ";
if (showOwnerType && ownerType) ss << ownerType->GetName() << "::";
ss << name << "(";
for (int i = 0, n = paramTypes.size(); i<n; i++){
if (i != 0) ss << ", ";
ss << paramTypes[i].ToString();
}
ss << ")";
return ss.str();
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/reference/PracticeCode.git
git@gitee.com:reference/PracticeCode.git
reference
PracticeCode
PracticeCode
master

搜索帮助