mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes
m::ast::Sema::RequireContext Struct Reference

Helper class to create a context when one is required but does not yet exist. More...

Collaboration diagram for m::ast::Sema::RequireContext:
[legend]

Public Member Functions

 RequireContext (Sema *sema, Stmt &stmt)
 
 ~RequireContext ()
 

Private Attributes

Semasema_
 
bool needs_context_ = false
 

Detailed Description

Helper class to create a context when one is required but does not yet exist.

Automatically disposes of the context when the instance goes out of scope.

Definition at line 75 of file Sema.hpp.

Constructor & Destructor Documentation

◆ RequireContext()

m::ast::Sema::RequireContext::RequireContext ( Sema sema,
Stmt stmt 
)
inline

Definition at line 82 of file Sema.hpp.

◆ ~RequireContext()

m::ast::Sema::RequireContext::~RequireContext ( )
inline

Definition at line 90 of file Sema.hpp.

References m::ast::Sema::pop_context().

Field Documentation

◆ needs_context_

bool m::ast::Sema::RequireContext::needs_context_ = false
private

Definition at line 79 of file Sema.hpp.

◆ sema_

Sema& m::ast::Sema::RequireContext::sema_
private

Definition at line 78 of file Sema.hpp.


The documentation for this struct was generated from the following file: