Class ScopeDocObj#

Inheritance Relationships#

Base Type#

Class Documentation#

class ScopeDocObj : public tvm::script::printer::StmtDocObj#

Doc that represents special scopes.

Specifically, this means the with statement in Python:

with ‘rhs’ as ‘lhs’: ‘body…’

See also

ScopeDoc

Public Members

ffi::Optional<ExprDoc> lhs = {std::nullopt}#

The name of the scoped variable.

ExprDoc rhs = {ffi::UnsafeInit()}#

The value of the scoped variable.

ffi::Array<StmtDoc> body#

The body of the scope doc.

bool allow_concise_scoping = {false}#

Whether a tail-position renderer may spell this scope concisely.

Public Static Functions

static inline void RegisterReflection()#
static inline int32_t _GetOrAllocRuntimeTypeIndex()#
static inline int32_t RuntimeTypeIndex() noexcept#