Doc that represents assert statement.
More...
#include <doc.h>
|
| ExprDoc | test {ffi::UnsafeInit()} |
| | The expression to test. More...
|
| |
| ffi::Optional< ExprDoc > | msg {std::nullopt} |
| | The optional error message when assertion failed. More...
|
| |
| ffi::Optional< ffi::String > | comment {std::nullopt} |
| | The comment of this doc. More...
|
| |
| ffi::Array< ffi::reflection::AccessPath > | source_paths |
| | The list of object paths of the source IR node. More...
|
| |
Doc that represents assert statement.
- See also
- AssertDoc
◆ RegisterReflection()
| static void tvm::script::printer::AssertDocNode::RegisterReflection |
( |
| ) |
|
|
inlinestatic |
◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()
| tvm::script::printer::AssertDocNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL |
( |
"script.printer.AssertDoc" |
, |
|
|
AssertDocNode |
, |
|
|
StmtDocNode |
|
|
) |
| |
◆ msg
| ffi::Optional<ExprDoc> tvm::script::printer::AssertDocNode::msg {std::nullopt} |
The optional error message when assertion failed.
◆ test
| ExprDoc tvm::script::printer::AssertDocNode::test {ffi::UnsafeInit()} |
The documentation for this class was generated from the following file:
- include/tvm/script/printer/doc.h