Doc that represents function definition.
More...
#include <doc.h>
Doc that represents function definition.
- See also
- FunctionDoc
◆ RegisterReflection()
| static void tvm::script::printer::FunctionDocObj::RegisterReflection |
( |
| ) |
|
|
inlinestatic |
◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()
| tvm::script::printer::FunctionDocObj::TVM_FFI_DECLARE_OBJECT_INFO_FINAL |
( |
"script.printer.FunctionDoc" |
, |
|
|
FunctionDocObj |
, |
|
|
StmtDocObj |
|
|
) |
| |
◆ args
| ffi::Array<AssignDoc> tvm::script::printer::FunctionDocObj::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::FunctionDocObj::body |
◆ decorators
| ffi::Array<ExprDoc> tvm::script::printer::FunctionDocObj::decorators |
◆ name
| IdDoc tvm::script::printer::FunctionDocObj::name {ffi::UnsafeInit{}} |
◆ return_type
| ffi::Optional<ExprDoc> tvm::script::printer::FunctionDocObj::return_type {std::nullopt} |
The return type of function.
◆ type_params
| ffi::Array<Doc> tvm::script::printer::FunctionDocObj::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:
- 3rdparty/tvm-tirx/include/tvm/script/printer/doc.h