Reference type of FunctionDocNode.
More...
#include <doc.h>
|
| | FunctionDoc (IdDoc name, ffi::Array< AssignDoc > args, ffi::Array< ExprDoc > decorators, ffi::Optional< ExprDoc > return_type, ffi::Array< StmtDoc > body, ffi::Array< Doc > type_params={}) |
| | Constructor of FunctionDoc.
|
| |
| | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (FunctionDoc, StmtDoc, FunctionDocNode) |
| |
| | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (StmtDoc, Doc, StmtDocNode) |
| |
| | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (Doc, ffi::ObjectRef, DocNode) |
| |
◆ FunctionDoc()
| tvm::script::printer::FunctionDoc::FunctionDoc |
( |
IdDoc |
name, |
|
|
ffi::Array< AssignDoc > |
args, |
|
|
ffi::Array< ExprDoc > |
decorators, |
|
|
ffi::Optional< ExprDoc > |
return_type, |
|
|
ffi::Array< StmtDoc > |
body, |
|
|
ffi::Array< Doc > |
type_params = {} |
|
) |
| |
|
explicit |
Constructor of FunctionDoc.
- Parameters
-
| name | The name of function.. |
| args | The arguments of function. |
| decorators | The decorator of function. |
| return_type | The return type of function. |
| body | The body of function. |
| type_params | The PEP 695 type parameters of the function. |
◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE()
The documentation for this class was generated from the following file:
- include/tvm/script/printer/doc.h