Yume
Public Attributes | List of all members
yume::InScope Struct Reference

A local variable in function scope. Used to track destructing when the scope ends. More...

#include <vals.hpp>

Collaboration diagram for yume::InScope:
Collaboration graph
[legend]

Public Attributes

Val value
 
const ast::ASTast
 
bool owning {}
 Whether the local scope "owns" the variable. Unowned variables are not destructed at the end of the scope. More...
 

Detailed Description

A local variable in function scope. Used to track destructing when the scope ends.

Definition at line 273 of file vals.hpp.

Member Data Documentation

◆ ast

const ast::AST& yume::InScope::ast

Definition at line 275 of file vals.hpp.

Referenced by yume::destruct_indirect().

◆ owning

bool yume::InScope::owning {}

Whether the local scope "owns" the variable. Unowned variables are not destructed at the end of the scope.

Definition at line 277 of file vals.hpp.

Referenced by yume::destruct_indirect(), yume::Compiler::expression(), and yume::Compiler::statement().

◆ value

Val yume::InScope::value

Definition at line 274 of file vals.hpp.

Referenced by yume::Compiler::define(), and yume::destruct_indirect().


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