MCPcopy Create free account
hub / github.com/JeremyBYU/polylidar / ParseArguments

Method ParseArguments

src/Python/polylidar_pybind/docstring/docstring.cpp:233–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233void 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
247void FunctionDoc::ParseReturn()
248{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected