Class StmtDocObj#
Defined in File doc.h
Inheritance Relationships#
Base Type#
public tvm::script::printer::DocObj(Class DocObj)
Derived Types#
public tvm::script::printer::AssertDocObj(Class AssertDocObj)public tvm::script::printer::AssignDocObj(Class AssignDocObj)public tvm::script::printer::BreakDocObj(Class BreakDocObj)public tvm::script::printer::ClassDocObj(Class ClassDocObj)public tvm::script::printer::CommentDocObj(Class CommentDocObj)public tvm::script::printer::ContinueDocObj(Class ContinueDocObj)public tvm::script::printer::DocStringDocObj(Class DocStringDocObj)public tvm::script::printer::ExprStmtDocObj(Class ExprStmtDocObj)public tvm::script::printer::ForDocObj(Class ForDocObj)public tvm::script::printer::FunctionDocObj(Class FunctionDocObj)public tvm::script::printer::IfDocObj(Class IfDocObj)public tvm::script::printer::ReturnDocObj(Class ReturnDocObj)public tvm::script::printer::ScopeDocObj(Class ScopeDocObj)public tvm::script::printer::WhileDocObj(Class WhileDocObj)
Class Documentation#
-
class StmtDocObj : public tvm::script::printer::DocObj#
The base class of statement doc.
See also
Subclassed by tvm::script::printer::AssertDocObj, tvm::script::printer::AssignDocObj, tvm::script::printer::BreakDocObj, tvm::script::printer::ClassDocObj, tvm::script::printer::CommentDocObj, tvm::script::printer::ContinueDocObj, tvm::script::printer::DocStringDocObj, tvm::script::printer::ExprStmtDocObj, tvm::script::printer::ForDocObj, tvm::script::printer::FunctionDocObj, tvm::script::printer::IfDocObj, tvm::script::printer::ReturnDocObj, tvm::script::printer::ScopeDocObj, tvm::script::printer::WhileDocObj
Public Members
-
mutable ffi::Optional<ffi::String> comment = {std::nullopt}#
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.
-
mutable ffi::Optional<ffi::String> comment = {std::nullopt}#