-
Notifications
You must be signed in to change notification settings - Fork 592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Ice 2 Slice translator #1576
Conversation
return os.str(); | ||
} | ||
|
||
string typeToCsString(const TypePtr& type, bool optional) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not clear why we need this in ice2slice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To map cs::generic metadata to cs::type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Co-authored-by: Joe George <[email protected]>
Co-authored-by: Joe George <[email protected]>
Co-authored-by: Joe George <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
OperationPtr operation = OperationPtr::dynamicCast(contained); | ||
if (operation) | ||
{ | ||
std::map<std::string, StringList> parameterDocs = comment->parameters(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also handle the 'returns', 'exceptions' (now @throws) and 'seealso' tags?
for (ParamDeclList::const_iterator it = parameters.begin(); it != parameters.end(); it++) | ||
{ | ||
ParamDeclPtr param = *it; | ||
if (!param->isOutParam()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And also map @param
to @returns
?
Slice lets you do:
@returns foo: something
@returns bar: i don't know
The same syntax as @param
in the case where your return elements have names.
I will deal with the doc comments in a follow-up PR. |
This PR adds an
ice2slice
translator, that allows to convert Ice.ice
files to IceRPC.slice
files.There are still a few things to do, especially to deal with things that don't have equivalent in
.slice
files.