Doc that represents function definition.
More...
#include <doc.h>
Doc that represents function definition.
- See also
- FunctionDoc
◆ RegisterReflection()
| static void tvm::script::printer::FunctionDocNode::RegisterReflection |
( |
| ) |
|
|
inlinestatic |
◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()
| tvm::script::printer::FunctionDocNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL |
( |
"script.printer.FunctionDoc" |
, |
|
|
FunctionDocNode |
, |
|
|
StmtDocNode |
|
|
) |
| |
◆ args
| ffi::Array<AssignDoc> tvm::script::printer::FunctionDocNode::args |
The arguments of function.
The lhs means argument name, annotation means argument type, and rhs means default value.
◆ body
| ffi::Array<StmtDoc> tvm::script::printer::FunctionDocNode::body |
◆ decorators
| ffi::Array<ExprDoc> tvm::script::printer::FunctionDocNode::decorators |
◆ name
| IdDoc tvm::script::printer::FunctionDocNode::name {ffi::UnsafeInit{}} |
◆ return_type
| ffi::Optional<ExprDoc> tvm::script::printer::FunctionDocNode::return_type {std::nullopt} |
The return type of function.
◆ type_params
| ffi::Array<Doc> tvm::script::printer::FunctionDocNode::type_params |
The PEP 695 type parameters of the function.
Possible actual types:
- ExprDoc (a bare parameter like
T)
- AssignDoc (an annotated parameter like
T: int)
The documentation for this class was generated from the following file:
- include/tvm/script/printer/doc.h