The base class of statement doc.
More...
#include <doc.h>
|
Optional< String > | comment {std::nullopt} |
| The comment of this doc. More...
|
|
Array< ffi::reflection::AccessPath > | source_paths |
| The list of object paths of the source IR node. More...
|
|
|
static constexpr const char * | _type_key = "script.printer.StmtDoc" |
|
static constexpr const char * | _type_key = "script.printer.Doc" |
|
static constexpr bool | _type_mutable = true |
|
The base class of statement doc.
- See also
- StmtDoc
◆ RegisterReflection()
static void tvm::script::printer::StmtDocNode::RegisterReflection |
( |
| ) |
|
|
inlinestatic |
◆ TVM_DECLARE_BASE_OBJECT_INFO()
◆ _type_key
constexpr const char* tvm::script::printer::StmtDocNode::_type_key = "script.printer.StmtDoc" |
|
staticconstexpr |
◆ comment
Optional<String> tvm::script::printer::StmtDocNode::comment {std::nullopt} |
|
mutable |
The comment of this doc.
The actual position of the comment depends on the type of Doc and also the DocPrinter implementation. It could be on the same line as the statement, or the line above, or inside the statement if it spans over multiple lines.
The documentation for this class was generated from the following file:
- include/tvm/script/printer/doc.h