| 231 | } |
| 232 | |
| 233 | void FunctionDoc::ParseArguments() |
| 234 | { |
| 235 | // Parse docstrings of arguments |
| 236 | // Input: "foo(arg0: float, arg1: float = 1.0, arg2: int = 1) -> cpplib.bar" |
| 237 | // Goal: split to {"arg0: float", "arg1: float = 1.0", "arg2: int = 1"} and |
| 238 | // call function to parse each argument respectively |
| 239 | std::vector<std::string> argument_tokens = GetArgumentTokens(pybind_doc_); |
| 240 | argument_docs_.clear(); |
| 241 | for (const std::string& argument_token : argument_tokens) |
| 242 | { |
| 243 | argument_docs_.push_back(ParseArgumentToken(argument_token)); |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | void FunctionDoc::ParseReturn() |
| 248 | { |
nothing calls this directly
no outgoing calls
no test coverage detected