fixed styletypos, renaming and added helperfunction

This commit is contained in:
djuju
2017-05-17 11:14:33 +02:00
committed by djudjuu
parent 487eef18cc
commit 2fa7646944
2 changed files with 40 additions and 36 deletions
+12 -1
View File
@@ -136,10 +136,21 @@ private:
{
return _node.id();
}
template<class Container>
Json::Value getContainerIds(Container container)
{
Json::Value tmp(Json::arrayValue);
for (auto it = container.begin(); it != container.end(); ++it)
{
solAssert(*it, "");
tmp.append(nodeId(**it));
}
return tmp;
}
Json::Value typePointerToJson(TypePointer _tp);
Json::Value typePointerToJson(std::shared_ptr<std::vector<TypePointer>> _tps);
void appendExpressionAttributes(
std::vector<std::pair<std::string, Json::Value>> * _attributes,
std::vector<std::pair<std::string, Json::Value>> &_attributes,
ExpressionAnnotation const& _annotation
);
bool m_legacy = false; ///< if true, use legacy format